Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] [Patch] Missed firepower in aiunit.c
Home

[Freeciv-Dev] [Patch] Missed firepower in aiunit.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [Patch] Missed firepower in aiunit.c
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Sat, 2 Mar 2002 19:16:59 +0000 (GMT)

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

Attachment: belligerence_fix.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]