|
|
@ -285,7 +285,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|
|
|
/* XXX Assume a 'higher' railtype has preference. This means we
|
|
|
|
/* XXX Assume a 'higher' railtype has preference. This means we
|
|
|
|
* will convert from normal rail to electrified rail, but not
|
|
|
|
* will convert from normal rail to electrified rail, but not
|
|
|
|
* the other way around. */
|
|
|
|
* the other way around. */
|
|
|
|
if (GetRailType(tile) < p1) {
|
|
|
|
if (GetRailType(tile) < (RailType)p1) {
|
|
|
|
ret = DoCommand(tile, tile, p1, flags, CMD_CONVERT_RAIL);
|
|
|
|
ret = DoCommand(tile, tile, p1, flags, CMD_CONVERT_RAIL);
|
|
|
|
if (CmdFailed(ret)) return ret;
|
|
|
|
if (CmdFailed(ret)) return ret;
|
|
|
|
cost += ret;
|
|
|
|
cost += ret;
|
|
|
|