summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-25 16:10:34 +0000
committerbelugas <belugas@openttd.org>2008-08-25 16:10:34 +0000
commit08898f69bebd4ed5fc866aeb31406cc512ed7fcf (patch)
tree939b2bf0ef664550aa207ba7a014be3c9614adb9 /src/ai
parentcf52b683c0a478b113bd25893f49554906edb32f (diff)
downloadopenttd-08898f69bebd4ed5fc866aeb31406cc512ed7fcf.tar.xz
(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
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 650250ca5..105f43b52 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -3956,7 +3956,7 @@ static void AiBuildCompanyHQ(Player *p)
{
TileIndex tile;
- if (p->location_of_house == 0 &&
+ if (p->location_of_HQ == 0 &&
p->last_build_coordinate != 0) {
tile = AdjustTileCoordRandomly(p->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 708753b8b..bbd630673 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -107,7 +107,7 @@ static void AiNew_State_WakeUp(Player *p)
int c;
assert(_players_ainew[p->index].state == AI_STATE_WAKE_UP);
// First, check if we have a HQ
- if (p->location_of_house == 0) {
+ if (p->location_of_HQ == 0) {
// 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..