main_gui.c
changeset 3310 a19f247b75b6
parent 3248 adb982de0b02
child 3326 00cf690a7fe1
--- a/main_gui.c	Thu Mar 23 17:49:50 2006 +0000
+++ b/main_gui.c	Thu Mar 23 20:47:56 2006 +0000
@@ -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 @@
 		return;
 	}
 
-	ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 1);
+	MakeLighthouse(tile);
+	MarkTileDirtyByTile(tile);
 	SndPlayTileFx(SND_1F_SPLAT, tile);
 }
 
@@ -1217,7 +1219,8 @@
 		return;
 	}
 
-	ModifyTile(tile, MP_SETTYPE(MP_UNMOVABLE) | MP_MAP5, 0);
+	MakeTransmitter(tile);
+	MarkTileDirtyByTile(tile);
 	SndPlayTileFx(SND_1F_SPLAT, tile);
 }