src/water_cmd.cpp
changeset 8361 7963f4b11d96
parent 8360 3021c928de6c
child 8368 dcee6c9440b5
equal deleted inserted replaced
8360:3021c928de6c 8361:7963f4b11d96
   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);