[Freeciv-Dev] (PR#11009) AI Hunts Own Units
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=11009 >
The ai_hunter_findjob function in aihunt.c contains the condition
if (!aplayer->is_alive || !is_player_dangerous(pplayer, aplayer)) {
that condition should be
if (pplayer == aplayer || !aplayer->is_alive
|| !is_player_dangerous(pplayer, aplayer)) {
As the code stands, the AI will consider hunting its own units.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#11009) AI Hunts Own Units,
Benedict Adamson <=
|
|