mirror of https://github.com/OpenTTD/OpenTTD
(svn r11927) -Fix (r11926): unable to place canals in game
parent
4a2f7db99b
commit
a580c8d059
|
@ -271,7 +271,7 @@ CommandCost CmdBuildCanal(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
if (p1 >= MapSize()) return CMD_ERROR;
|
if (p1 >= MapSize()) return CMD_ERROR;
|
||||||
|
|
||||||
/* Outside of the editor you can only build canals, not oceans */
|
/* Outside of the editor you can only build canals, not oceans */
|
||||||
if (p2 == 0 && _game_mode != GM_EDITOR) return CMD_ERROR;
|
if (p2 != 0 && _game_mode != GM_EDITOR) return CMD_ERROR;
|
||||||
|
|
||||||
x = TileX(tile);
|
x = TileX(tile);
|
||||||
y = TileY(tile);
|
y = TileY(tile);
|
||||||
|
|
Loading…
Reference in New Issue