diff options
author | tron <tron@openttd.org> | 2005-01-18 18:41:56 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-18 18:41:56 +0000 |
commit | 31d6f87d80bb42c1fbb8841071937e6d86fe9e86 (patch) | |
tree | 0e41a8961f8378269224ee774e2ebd64fcf9e349 /unmovable_cmd.c | |
parent | 64b08311b9539e3a805365155c396cec854dd5f5 (diff) | |
download | openttd-31d6f87d80bb42c1fbb8841071937e6d86fe9e86.tar.xz |
(svn r1560) Introduce SetTileType() and SetTileHeight()
Replace direct references to _map_type_and_height with these
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r-- | unmovable_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c index 9b6075c93..5274710c9 100644 --- a/unmovable_cmd.c +++ b/unmovable_cmd.c @@ -268,7 +268,7 @@ void GenerateUnmovables() if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h >= 32) { if(!checkRadioTowerNearby(tile)) continue; - _map_type_and_height[tile] |= MP_UNMOVABLE << 4; + SetTileType(tile, MP_UNMOVABLE); _map5[tile] = 0; _map_owner[tile] = OWNER_NONE; if (--j == 0) @@ -300,7 +300,7 @@ restart: assert(tile == TILE_MASK(tile)); - _map_type_and_height[tile] |= MP_UNMOVABLE << 4; + SetTileType(tile, MP_UNMOVABLE); _map5[tile] = 1; _map_owner[tile] = OWNER_NONE; } while (--i); |