src/ai/trolly/trolly.cpp
changeset 10010 09ff8bd74b87
parent 9950 2a0d0769c0e3
child 10207 c291a21b304e
equal deleted inserted replaced
10009:41d822dd3350 10010:09ff8bd74b87
   105 static void AiNew_State_WakeUp(Player *p)
   105 static void AiNew_State_WakeUp(Player *p)
   106 {
   106 {
   107 	int c;
   107 	int c;
   108 	assert(_players_ainew[p->index].state == AI_STATE_WAKE_UP);
   108 	assert(_players_ainew[p->index].state == AI_STATE_WAKE_UP);
   109 	// First, check if we have a HQ
   109 	// First, check if we have a HQ
   110 	if (p->location_of_house == 0) {
   110 	if (p->location_of_HQ == 0) {
   111 		// We have no HQ yet, build one on a random place
   111 		// We have no HQ yet, build one on a random place
   112 		// Random till we found a place for it!
   112 		// Random till we found a place for it!
   113 		// TODO: this should not be on a random place..
   113 		// TODO: this should not be on a random place..
   114 		AiNew_Build_CompanyHQ(p, AI_Random() % MapSize());
   114 		AiNew_Build_CompanyHQ(p, AI_Random() % MapSize());
   115 		// Enough for now, but we want to come back here the next time
   115 		// Enough for now, but we want to come back here the next time