summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-10 08:45:55 +0000
committerDarkvater <darkvater@openttd.org>2005-05-10 08:45:55 +0000
commitfe223eccf40cd7cf1d81053c5565e9cdbffe414c (patch)
treef9cf20b16fff78b9df8f3f26e535eeda0f47de6b
parentab954a934a20e21dc9e2672c380d8a7ab8531d33 (diff)
downloadopenttd-fe223eccf40cd7cf1d81053c5565e9cdbffe414c.tar.xz
(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 0a89492da..8122fc9c8 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -623,7 +623,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (p2 > 3) return CMD_ERROR; // check direction
+ if (p1 > 3) return CMD_ERROR; // check direction
FindLandscapeHeight(&ti, x, y);