(svn r4318) CodeChange : Remove last direct map access on ai/default/default.c
authorbelugas
Sat, 08 Apr 2006 01:07:32 +0000
changeset 3473 1c2e0a8b229a
parent 3472 04173b5ed0d2
child 3474 acaa3ba24f2e
(svn r4318) CodeChange : Remove last direct map access on ai/default/default.c
ai/default/default.c
--- a/ai/default/default.c	Fri Apr 07 15:57:03 2006 +0000
+++ b/ai/default/default.c	Sat Apr 08 01:07:32 2006 +0000
@@ -3394,8 +3394,8 @@
 					!IsTileType(aib->use_tile, MP_STATION)
 					) {
 
-				_m[aib->use_tile].type_height = 0xa1;
-				_m[aib->use_tile].m5 = 0x80;
+				SetTileHeight(aib->use_tile, 1);
+				MakeCompanyHQ(aib->use_tile, _current_player);
 				MarkTileDirtyByTile(aib->use_tile);
 			}
 #endif