Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost...
Home

[Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost...
From: Tony Stuckey <stuckey@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Jan 2000 14:46:29 -0600

        Ai/aiunit.c defines two functions, reinforcements_cost()
and reinforcements_value().  Reinforcements_cost() is always called
together with reinforcements_value(), although reinforcements_value() is
sometimes called alone.  They do almost exactly the same work internally.
        This patch creates a new function combining the two, which is
alluded to in a comment by the previous author as a possible idea.  This is
somewhat more efficient than the existing method.
-- 
Anthony J. Stuckey                              stuckey@xxxxxxxxxxxxxxxxx
"And they said work hard, and die suddenly, because it's fun."
        -Robyn Hitchcock.

Attachment: rcv.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost..., Tony Stuckey <=