Mercurial > hg > openttd
comparison src/road_cmd.cpp @ 8081:97d86b93edda draft
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 15 Dec 2007 23:11:18 +0000 |
parents | 8de1216a9e47 |
children | e02014b06c7f |
comparison
equal
deleted
inserted
replaced
8080:dc4d4af342b4 | 8081:97d86b93edda |
---|---|
617 | 617 |
618 if (exec) { | 618 if (exec) { |
619 SetRailType(tile, totype); | 619 SetRailType(tile, totype); |
620 MarkTileDirtyByTile(tile); | 620 MarkTileDirtyByTile(tile); |
621 YapfNotifyTrackLayoutChange(tile, FindFirstTrack(GetCrossingRailBits(tile))); | 621 YapfNotifyTrackLayoutChange(tile, FindFirstTrack(GetCrossingRailBits(tile))); |
622 VehicleFromPos(tile, &tile, UpdateTrainPowerProc); | 622 VehicleFromPos(tile, NULL, &UpdateTrainPowerProc); |
623 } | 623 } |
624 | 624 |
625 return CommandCost(RailConvertCost(GetRailType(tile), totype)); | 625 return CommandCost(RailConvertCost(GetRailType(tile), totype)); |
626 } | 626 } |
627 | 627 |