(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
This commit is contained in:
@@ -69,7 +69,7 @@ static void BuildRoadOutsideStation(TileIndex tile, int direction)
|
||||
static const byte _roadbits_by_dir[4] = {2,1,8,4};
|
||||
tile += TileOffsByDir(direction);
|
||||
// if there is a roadpiece just outside of the station entrance, build a connecting route
|
||||
if (IsTileType(tile, MP_STREET) && !(_map5[tile] & 0x20)) {
|
||||
if (IsTileType(tile, MP_STREET) && !(_m[tile].m5 & 0x20)) {
|
||||
DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user