forked from mirror/OpenTTD
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
This commit is contained in:
@@ -1306,7 +1306,7 @@ CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec)
|
||||
SetRailType(tile, totype);
|
||||
MarkTileDirtyByTile(tile);
|
||||
YapfNotifyTrackLayoutChange(tile, GetRailStationTrack(tile));
|
||||
VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
|
||||
VehicleFromPos(tile, NULL, &UpdateTrainPowerProc);
|
||||
}
|
||||
|
||||
return CommandCost(RailConvertCost(GetRailType(tile), totype));
|
||||
|
Reference in New Issue
Block a user