(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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user