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

pull/155/head
darkvater 20 years ago
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…
Cancel
Save