diff options
author | tron <tron@openttd.org> | 2006-03-23 20:47:56 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-23 20:47:56 +0000 |
commit | 747fe64b31ba236df5caf32b6871a5bce10665b8 (patch) | |
tree | 5fe90832d23bf4493a9bb128090d8109bf163cc1 /main_gui.c | |
parent | 4e3714b391bea40e2f8e08918abef8732775662f (diff) | |
download | openttd-747fe64b31ba236df5caf32b6871a5bce10665b8.tar.xz |
(svn r4073) Add functions to make and test for (most) unmovable tiles
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c index 6c6614e02..afdbbff7d 100644 --- a/main_gui.c +++ b/main_gui.c @@ -27,6 +27,7 @@ #include "waypoint.h" #include "variables.h" #include "train.h" +#include "unmovable_map.h" #include "network_data.h" #include "network_client.h" @@ -1207,7 +1208,8 @@ static void PlaceProc_LightHouse(TileIndex tile) return; } - ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 1); + MakeLighthouse(tile); + MarkTileDirtyByTile(tile); SndPlayTileFx(SND_1F_SPLAT, tile); } @@ -1217,7 +1219,8 @@ static void PlaceProc_Transmitter(TileIndex tile) return; } - ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 0); + MakeTransmitter(tile); + MarkTileDirtyByTile(tile); SndPlayTileFx(SND_1F_SPLAT, tile); } |