diff options
author | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
commit | 7fb3f54584fd9dd3266997cd12bd1853c18ad5bb (patch) | |
tree | 35f2cfc46313d08457c127c393370517d519fab3 /src/town_cmd.cpp | |
parent | d4666b51eebaf8431a0f60e342182c57215db2ef (diff) | |
download | openttd-7fb3f54584fd9dd3266997cd12bd1853c18ad5bb.tar.xz |
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 6615c1b36..956e8bfca 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -82,7 +82,7 @@ void DestroyTown(Town *t) if (GetTownByTile(tile) == t) DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); break; - case MP_STREET: + case MP_ROAD: case MP_TUNNELBRIDGE: if (IsTileOwner(tile, OWNER_TOWN) && ClosestTownFromTile(tile, (uint)-1) == t) @@ -1151,7 +1151,7 @@ static int GrowTownAtRoad(Town *t, TileIndex tile) do block = Random() & 3; while (!HASBIT(mask, block)); tile += ToTileIndexDiff(_roadblock_tileadd[block]); - if (IsTileType(tile, MP_STREET)) { + if (IsTileType(tile, MP_ROAD)) { /* Don't allow building over roads of other cities */ if (IsTileOwner(tile, OWNER_TOWN) && GetTownByTile(tile) != t) { _grow_town_result = -1; @@ -2233,7 +2233,7 @@ Town* CalcClosestTownFromTile(TileIndex tile, uint threshold) Town *ClosestTownFromTile(TileIndex tile, uint threshold) { if (IsTileType(tile, MP_HOUSE) || ( - IsTileType(tile, MP_STREET) && + IsTileType(tile, MP_ROAD) && GetRoadOwner(tile, ROADTYPE_ROAD) == OWNER_TOWN )) { return GetTownByTile(tile); |