summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp2
-rw-r--r--src/ai/trolly/trolly.cpp2
2 files changed, 2 insertions, 2 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);
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index 17918b2ca..c761d8a87 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -106,7 +106,7 @@ static void AiNew_State_WakeUp(Company *c)
{
assert(_companies_ainew[c->index].state == AI_STATE_WAKE_UP);
// First, check if we have a HQ
- if (c->location_of_HQ == 0) {
+ if (c->location_of_HQ == INVALID_TILE) {
// We have no HQ yet, build one on a random place
// Random till we found a place for it!
// TODO: this should not be on a random place..