(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
This commit is contained in:
@@ -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);
|
||||
|
@@ -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..
|
||||
|
Reference in New Issue
Block a user