[Freeciv-Dev] [Patch] Cleanup of units and unittypes
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The attached patch introduces a new method: "struct unit_type
*unit_type(struct unit *punit)". The patch replaces
"get_unit_type(punit->type)->" and "unit_types[punit->type]." with
"unit_type(punit)->".
This patch is the first one is a series of patches to bring
Unit_Type_id the same fate as "int unit_id": remove it and replace all
it with "struct unit_type *" in every function argument.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
Windows: From the people who brought you edlin...
unit_type1.diff.gz
Description: GNU Zip compressed data
- [Freeciv-Dev] [Patch] Cleanup of units and unittypes,
Raimar Falke <=
|
|