(svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user