Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
December 2001: [Freeciv-Dev] PATCHES: AI cleanups |
[Freeciv-Dev] PATCHES: AI cleanups[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The following two paches are included, aicleanupv2.1, and unit_move_turns patch, broken up as GB suggested. The two patches introduce the following changes unit_move_turns replaces the previous ugly code with a nicer case statement, and gets rid of one letter variables like c and m. Aicleanupv2.1 gets rid of more one letter variables, gets rid of some more hardcoded nos like 6:12, replacing them with 2 * SINGLE_MOVE: 4 * SINGLE_MOVE. Introduces some readibility into the current ai code in advmilitary.c and aiunit.c. It lays the framework for much bigger changes to come. __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com
aicleanupv2.1.diff
unit_move_turns.diff
|