changeset 8361:e3b4302ca836 draft

(svn r11927) -Fix (r11926): unable to place canals in game
author peter1138 <peter1138@openttd.org>
date Sat, 19 Jan 2008 18:24:20 +0000
parents bf5f533a604f
children 8212ccaf2858
files src/water_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -271,7 +271,7 @@
 	if (p1 >= MapSize()) return CMD_ERROR;
 
 	/* 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);
 	y = TileY(tile);