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/trolly | |
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/trolly')
-rw-r--r-- | src/ai/trolly/trolly.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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.. |