1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 03:42:41 +01:00

(svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype.

This commit is contained in:
michi_cc
2012-01-08 12:47:54 +00:00
parent 7e78d15e58
commit 9232a2ef0c
4 changed files with 5 additions and 21 deletions

View File

@@ -1658,7 +1658,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
if (flags & DC_EXEC) {
/* Railtype changed, update trains as when entering different track */
for (Train **v = affected_trains.Begin(); v != affected_trains.End(); v++) {
(*v)->RailtypeChanged();
(*v)->ConsistChanged(true);
}
}