[Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost...
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.
rcv.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] PATCH: ai/aiunit.c: reinforcements_cost...,
Tony Stuckey <=
|
|