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