(svn r73) -Fix: Wrong building of road-slopes for a future AI/Town

This commit is contained in:
darkvater 2004-08-17 09:23:25 +00:00
parent a21fa40127
commit 61264942d0
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static uint32 CheckRoadSlope(int tileh, byte *pieces, byte existing)
// 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;