equal
deleted
inserted
replaced
269 int sx, sy; |
269 int sx, sy; |
270 |
270 |
271 if (p1 >= MapSize()) return CMD_ERROR; |
271 if (p1 >= MapSize()) return CMD_ERROR; |
272 |
272 |
273 /* Outside of the editor you can only build canals, not oceans */ |
273 /* Outside of the editor you can only build canals, not oceans */ |
274 if (p2 == 0 && _game_mode != GM_EDITOR) return CMD_ERROR; |
274 if (p2 != 0 && _game_mode != GM_EDITOR) return CMD_ERROR; |
275 |
275 |
276 x = TileX(tile); |
276 x = TileX(tile); |
277 y = TileY(tile); |
277 y = TileY(tile); |
278 sx = TileX(p1); |
278 sx = TileX(p1); |
279 sy = TileY(p1); |
279 sy = TileY(p1); |