From 9c66082b079af7f608d033225c1544558c93a715 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 8 Jun 2007 09:35:39 +0000 Subject: (svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics. --- src/station_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index abee202b0..3adb4d1bb 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -978,7 +978,7 @@ int32 CmdBuildRailroadStation(TileIndex tile_org, uint32 flags, uint32 p1, uint3 tile_org += tile_delta ^ TileDiffXY(1, 1); // perpendicular to tile_delta } while (--numtracks); - st->MarkTilesDirty(); + st->MarkTilesDirty(false); UpdateStationVirtCoordDirty(st); UpdateStationAcceptance(st, false); RebuildStationLists(); @@ -1105,7 +1105,7 @@ int32 CmdRemoveFromRailroadStation(TileIndex tile, uint32 flags, uint32 p1, uint // now we need to make the "spanned" area of the railway station smaller if we deleted something at the edges. // we also need to adjust train_tile. MakeRailwayStationAreaSmaller(st); - st->MarkTilesDirty(); + st->MarkTilesDirty(false); UpdateStationSignCoord(st); // if we deleted the whole station, delete the train facility. @@ -2484,7 +2484,7 @@ static void UpdateStationWaiting(Station *st, CargoID type, uint amount) st->goods[type].enroute_from = st->index; st->goods[type].enroute_from_xy = st->xy; InvalidateWindow(WC_STATION_VIEW, st->index); - st->MarkTilesDirty(); + st->MarkTilesDirty(true); } /** Rename a station -- cgit v1.2.3-54-g00ecf