equal
deleted
inserted
replaced
25 #include "network.h" |
25 #include "network.h" |
26 #include "signs.h" |
26 #include "signs.h" |
27 #include "waypoint.h" |
27 #include "waypoint.h" |
28 #include "variables.h" |
28 #include "variables.h" |
29 #include "train.h" |
29 #include "train.h" |
|
30 #include "unmovable_map.h" |
30 |
31 |
31 #include "network_data.h" |
32 #include "network_data.h" |
32 #include "network_client.h" |
33 #include "network_client.h" |
33 #include "network_server.h" |
34 #include "network_server.h" |
34 |
35 |
1205 { |
1206 { |
1206 if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) { |
1207 if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) { |
1207 return; |
1208 return; |
1208 } |
1209 } |
1209 |
1210 |
1210 ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 1); |
1211 MakeLighthouse(tile); |
|
1212 MarkTileDirtyByTile(tile); |
1211 SndPlayTileFx(SND_1F_SPLAT, tile); |
1213 SndPlayTileFx(SND_1F_SPLAT, tile); |
1212 } |
1214 } |
1213 |
1215 |
1214 static void PlaceProc_Transmitter(TileIndex tile) |
1216 static void PlaceProc_Transmitter(TileIndex tile) |
1215 { |
1217 { |
1216 if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) { |
1218 if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) { |
1217 return; |
1219 return; |
1218 } |
1220 } |
1219 |
1221 |
1220 ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 0); |
1222 MakeTransmitter(tile); |
|
1223 MarkTileDirtyByTile(tile); |
1221 SndPlayTileFx(SND_1F_SPLAT, tile); |
1224 SndPlayTileFx(SND_1F_SPLAT, tile); |
1222 } |
1225 } |
1223 |
1226 |
1224 static void PlaceProc_DesertArea(TileIndex tile) |
1227 static void PlaceProc_DesertArea(TileIndex tile) |
1225 { |
1228 { |