Plans: Improve performance of viewport plan rendering
This commit is contained in:
@@ -69,6 +69,7 @@ CommandCost CmdAddPlanLine(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||
p->lines.pop_back();
|
||||
return CMD_ERROR;
|
||||
}
|
||||
pl->UpdateVisualExtents();
|
||||
if (p->IsListable()) {
|
||||
pl->SetVisibility(p->visible);
|
||||
if (p->visible) pl->MarkDirty();
|
||||
|
Reference in New Issue
Block a user