Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: Recalculating movement after unit gets damaged
Home

[Freeciv-Dev] Re: Recalculating movement after unit gets damaged

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Recalculating movement after unit gets damaged
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Thu, 3 Oct 2002 17:57:14 +0100 (BST)

On Thu, 3 Oct 2002, Thomas Strub wrote:

> I looked at the code ... that only affects sea-units. I changed it so
> attacking and defending units have the same effect when getting
> attacked.
> 
> There is no effect on land units.

I really dislike how it's done (that means I dislike the existing code 
too).  I feel there is no need to copy and keep the whole unit struct if 
all you need is just def_moves_used and att_moves_used.  Why not compute 
only those before the fighting occurs?

G.



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