mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.
This commit is contained in:
parent
ab954a934a
commit
fe223eccf4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue