(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.
authorDarkvater
Tue, 10 May 2005 08:45:55 +0000
changeset 1785 d3f3496b5943
parent 1784 d0698aac0c2e
child 1786 7cfd46c3fcc4
(svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138.
road_cmd.c
--- a/road_cmd.c	Mon May 09 22:33:00 2005 +0000
+++ b/road_cmd.c	Tue May 10 08:45:55 2005 +0000
@@ -623,7 +623,7 @@
 
 	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);