Skip to content

Commit

Permalink
Revert 'Classic+:fix radius of action'
Browse files Browse the repository at this point in the history
  • Loading branch information
1oom-fork committed Aug 16, 2024
1 parent c53b2ba commit d5300fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion doc/list_gamediff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Much of this file is based on the readme from the unofficial v1.40m patch.
- AIs now actually take their treaties in consideration when asked to declare war on their allies
- AI clears his spies' missions when succesfully threatened
- AI does not blame both parties for breaking a treaty
- the AI now uses the correct radius of action during its decision making
- a war sparked by capturing or destroying a colony is considered to be started by the attacker
- Bulrathi orbital bombardment decisions corrected to reflect their race bonus
- Alkari and Mrrshan bonus for AI-AI combat corrected to reflect their race bonus
Expand Down
10 changes: 4 additions & 6 deletions src/game/game_ai_classic.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ struct ai_turn_p2_s {

static int game_ai_best_speed(const struct game_s *g, player_id_t player_i)
{
int v = game_tech_player_best_tech(g, TECH_FIELD_PROPULSION, 0, 6, 50, player_i);
if (g->ai_id != GAME_AI_CLASSIC) {
/* WASBUG v is the engine tech level (0, 6, ...) while caller expects speed (0, 1, ...) */
v /= 6;
}
return v + 3;
/* FIXME: The name of the function does not correctly reflect its meaning.
Previous fixes to this function resulted in serious bugs in AI behavior.
*/
return game_tech_player_best_tech(g, TECH_FIELD_PROPULSION, 0, 6, 50, player_i) + 3;
}

static void game_ai_classic_turn_p1_send_scout(struct game_s *g, struct ai_turn_p1_s *ait, player_id_t pi)
Expand Down

0 comments on commit d5300fc

Please sign in to comment.