(svn r2921) -Codechange: moved all AI-code to 1 central place (ai/ai.c)

-Fix: removed the ability for the oldAI to cheat (this will criple him somewhat)
-Add: base-code for many improvements to come in the AI-system
-Add: added base-code for multiplayer AIs (DOES NOT WORK YET!)
This commit is contained in:
truelight
2005-09-07 15:10:11 +00:00
parent 5a92c4982d
commit 6145b99c22
8 changed files with 346 additions and 49 deletions

View File

@@ -2546,8 +2546,6 @@ static void StationHandleBigTick(Station *st)
static inline void byte_inc_sat(byte *p) { byte b = *p + 1; if (b != 0) *p = b; }
static byte _rating_boost[3] = { 0, 31, 63};
static void UpdateStationRating(Station *st)
{
GoodsEntry *ge;
@@ -2581,11 +2579,6 @@ static void UpdateStationRating(Station *st)
(rating += 13, true);
}
{
if (st->owner != OWNER_NONE && !IS_HUMAN_PLAYER(st->owner))
rating += _rating_boost[_opt.diff.competitor_intelligence];
}
if (st->owner < MAX_PLAYERS && HASBIT(st->town->statues, st->owner))
rating += 26;