summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 12:20:15 +0000
committertron <tron@openttd.org>2005-11-16 12:20:15 +0000
commitcc61dd4890c70d5d4d29a6f6a6725ba92f1c1ae3 (patch)
tree581f3d4e74f057ce2633b5fc18c4568c04fe7841 /water_cmd.c
parent06a708b7b35e4d670a9f470b269c3bff2cae4cc9 (diff)
downloadopenttd-cc61dd4890c70d5d4d29a6f6a6725ba92f1c1ae3.tar.xz
(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/water_cmd.c b/water_cmd.c
index fcfa4211b..8530e2cb7 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -47,7 +47,7 @@ static bool IsClearWaterTile(TileIndex tile)
/** Build a ship depot.
* @param x,y tile coordinates where ship depot is built
- * @param p1 depot direction (0 through 3), where 0 is NW, 1 is NE, etc.
+ * @param p1 depot direction (0 == X or 1 == Y)
* @param p2 unused
*/
int32 CmdBuildShipDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
@@ -59,7 +59,7 @@ int32 CmdBuildShipDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (p1 > 3) return CMD_ERROR;
+ if (p1 > 1) return CMD_ERROR;
tile = TileVirtXY(x, y);
if (!EnsureNoVehicle(tile)) return CMD_ERROR;