Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] old/bad code in autoattack.c (PR#351)
Home

[Freeciv-Dev] old/bad code in autoattack.c (PR#351)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] old/bad code in autoattack.c (PR#351)
From: thue@xxxxxxx
Date: Sat, 29 Apr 2000 07:32:44 -0700 (PDT)

Full_Name: Thue Janus Kristensen
Version: CVS
Distribution: Built from source
Client: Both (or N/A)
OS: linux
Submission from: (NULL) (194.239.210.2)
Submitted by: thue


In server/autoattack.c a simple comparison of the unit types' defence values is
used. This is far too crude. It does not take in to accound terrain and special
bonuses like pikemen vs horses
Also, why does it use
        if (debug) freelog(LOG_DEBUG, ..);
instead of just 
        freelog(LOG_DEBUG, ...);
?

(I don't have time to fix this now myself, just using this as a memo and hoping
maybe someone else will fix it)





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