summaryrefslogtreecommitdiff
path: root/ai/default
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-08 01:07:32 +0000
committerbelugas <belugas@openttd.org>2006-04-08 01:07:32 +0000
commit4fdb25e65b9cae42cf75f08e7318f82b7ac991f5 (patch)
treea16f001cf39e03c98e33b9945b6c4550817507f5 /ai/default
parentc0cb020c801d4f03f535faa18228eb7194bf6dc1 (diff)
downloadopenttd-4fdb25e65b9cae42cf75f08e7318f82b7ac991f5.tar.xz
(svn r4318) CodeChange : Remove last direct map access on ai/default/default.c
Diffstat (limited to 'ai/default')
-rw-r--r--ai/default/default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index f10db36ef..4d12f6248 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -3394,8 +3394,8 @@ static void AiStateBuildDefaultAirportBlocks(Player *p)
!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