equal
deleted
inserted
replaced
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 |