(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
This commit is contained in:
@@ -437,7 +437,7 @@ CommandCost CmdTurnRoadVeh(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||
|
||||
void RoadVehicle::MarkDirty()
|
||||
{
|
||||
for (Vehicle *v = this; v != NULL; v = v->Next()) {
|
||||
for (RoadVehicle *v = this; v != NULL; v = v->Next()) {
|
||||
v->UpdateViewport(false, false);
|
||||
}
|
||||
this->CargoChanged();
|
||||
|
Reference in New Issue
Block a user