mirror of https://github.com/OpenTTD/OpenTTD
(svn r4882) -Fix: Forgot a change in previous commit
parent
476ad49ac0
commit
cbf4e1e159
|
@ -228,10 +228,10 @@ int32 CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
if (x == sx) {
|
if (x == sx) {
|
||||||
if (y == sy) return_cmd_error(STR_5008_CANNOT_START_AND_END_ON);
|
if (y == sy) return_cmd_error(STR_5008_CANNOT_START_AND_END_ON);
|
||||||
direction = AXIS_Y;
|
direction = AXIS_Y;
|
||||||
if (y > sy) intswap(y,sy);
|
if (y > sy) uintswap(y,sy);
|
||||||
} else if (y == sy) {
|
} else if (y == sy) {
|
||||||
direction = AXIS_X;
|
direction = AXIS_X;
|
||||||
if (x > sx) intswap(x,sx);
|
if (x > sx) uintswap(x,sx);
|
||||||
} else {
|
} else {
|
||||||
return_cmd_error(STR_500A_START_AND_END_MUST_BE_IN);
|
return_cmd_error(STR_500A_START_AND_END_MUST_BE_IN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue