[Freeciv-Dev] [Patch] Missed firepower in aiunit.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
A small fix to a small bug.
Friendly advice: don't read the description, look at the patch, it's
shorter.
=========== Description ===========
In ai_military_gothere (aiunit.c:1082) d_val is computed as sum of
actual units' attack ratings (aka belligerence) -- by calling
stack_attack_value -- and attack rating for hypothetical unit is added
in "if". The latter attack rating does not take into account firepower
and it should. The computation is converted to use the standard
you_couldnt_possibly_invent_an_uglier_and_longer_name belligerence
functions.
Also, a numerical constant is substituted by an already existing define.
=========== Files affected ========
ai/aiunit.c
=========== Behaviour change ======
yes, but it was wrong before
belligerence_fix.diff
Description: Text document
- [Freeciv-Dev] [Patch] Missed firepower in aiunit.c,
Gregory Berkolaiko <=
|
|