diff options
author | smatz <smatz@openttd.org> | 2009-01-03 17:11:52 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-03 17:11:52 +0000 |
commit | cd88a7590ab1ef746dbb2a064f7727f0abfb8b03 (patch) | |
tree | 1b6c7083c14efc8630c4839005e7b1c3c4610160 /src/ai/default/default.cpp | |
parent | ca4b7b2046bbeef9d30f3dedafe8276016b15b21 (diff) | |
download | openttd-cd88a7590ab1ef746dbb2a064f7727f0abfb8b03.tar.xz |
(svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ
Diffstat (limited to 'src/ai/default/default.cpp')
-rw-r--r-- | src/ai/default/default.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 2dc322d4d..8cbbafdaa 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -3956,7 +3956,7 @@ static void AiBuildCompanyHQ(Company *c) { TileIndex tile; - if (c->location_of_HQ == 0 && + if (c->location_of_HQ == INVALID_TILE && c->last_build_coordinate != 0) { tile = AdjustTileCoordRandomly(c->last_build_coordinate, 8); DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_BUILD_COMPANY_HQ); |