(svn r73) -Fix: Wrong building of road-slopes for a future AI/Town
authordarkvater
Tue, 17 Aug 2004 09:23:25 +0000
changeset 72 24bdf837198c
parent 71 1b8e15a10515
child 73 34d5f66cfad7
(svn r73) -Fix: Wrong building of road-slopes for a future AI/Town
road_cmd.c
--- a/road_cmd.c	Tue Aug 17 08:40:09 2004 +0000
+++ b/road_cmd.c	Tue Aug 17 09:23:25 2004 +0000
@@ -320,7 +320,7 @@
 			// force full pieces.
 			*pieces |= (*pieces & 0xC) >> 2;
 			*pieces |= (*pieces & 0x3) << 2;
-			return existing ? 0 : _price.terraform;	
+			return (*pieces == (ROAD_NE|ROAD_SW) || *pieces == (ROAD_SE|ROAD_NW)) ? _price.terraform : CMD_ERROR;
 		}
 	}
 	return CMD_ERROR;