(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.

This commit is contained in:
Darkvater 2005-05-10 08:45:55 +00:00
parent ab954a934a
commit fe223eccf4
1 changed files with 1 additions and 1 deletions

View File

@ -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);