diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-08 09:35:39 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-08 09:35:39 +0000 |
commit | 9c66082b079af7f608d033225c1544558c93a715 (patch) | |
tree | 2e4dbdfce24473a173e2061ef009fc3d4a98f929 /src/station_cmd.cpp | |
parent | 29f6ae952cdbd3ff702c84b6ad1e4a68968dc9ce (diff) | |
download | openttd-9c66082b079af7f608d033225c1544558c93a715.tar.xz |
(svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 |