| author | tron |
| Mon, 31 Jan 2005 22:17:15 +0000 | |
| changeset 1253 | fc0fb6772f40 |
| parent 1252 | 9ef7d43d4173 |
| child 1254 | c3705f146d8a |
--- a/ai_new.c Mon Jan 31 21:57:05 2005 +0000 +++ b/ai_new.c Mon Jan 31 22:17:15 2005 +0000 @@ -90,7 +90,7 @@ // 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;