Changeset - r1253:0c761ece6f11
[Not reviewed]
master
0 1 0
tron - 20 years ago 2005-01-31 22:17:15
tron@openttd.org
(svn r1757) Stop the new AI from trying to build its HQ on non-existent tiles
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ai_new.c
Show inline comments
 
@@ -90,7 +90,7 @@ static void AiNew_State_WakeUp(Player *p
 
		// 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..
 
		while (!AiNew_Build_CompanyHQ(p, (Random()&0xFFFF))) { }
 
		while (!AiNew_Build_CompanyHQ(p, Random() % MapSize())) { }
 
		// Enough for now, but we want to come back here the next time
 
		//  so we do not change any status
 
		return;
0 comments (0 inline, 0 general)