diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-10 08:45:55 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-10 08:45:55 +0000 |
commit | ea9a6ed27b7b3d67e6cb53b9bf7ab7f3f70e9359 (patch) | |
tree | f9cf20b16fff78b9df8f3f26e535eeda0f47de6b | |
parent | 6d349b6284f2d7fe65517b03bb310eb508eb3d3a (diff) | |
download | openttd-ea9a6ed27b7b3d67e6cb53b9bf7ab7f3f70e9359.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.c | 2 |
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); |