mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r73) -Fix: Wrong building of road-slopes for a future AI/Town
This commit is contained in:
parent
a21fa40127
commit
61264942d0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue