(nxtitemp, trade_getitem, trade_desc, trade_check_item_ok, nxtitem,
oprange, show_mission, nameofitem, build_mission_list_type, unit_map, xdvisible, trdswitchown, ontradingblock, trad, check_trade, unit_type_name, start_stop_unit, scut, scra, mission, multifire, perform_mission, fuel, NSC_GENITEM): Replace struct genitem with struct empobj. Remove genitem.h and create a new file empobj.h. Replace multiple instances of unions of ef_type structures with one standard union empobj_storage which is a superset of the individual instances.
This commit is contained in:
parent
9e75e5e009
commit
79ee88f7c6
29 changed files with 191 additions and 270 deletions
|
@ -60,7 +60,7 @@
|
|||
#define MAXSHPNAMLEN 24
|
||||
|
||||
struct shpstr {
|
||||
/* initial part must match struct genitem */
|
||||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
natid shp_own; /* owner's country num */
|
||||
short shp_uid; /* unit id (ship #) */
|
||||
|
@ -75,7 +75,7 @@ struct shpstr {
|
|||
coord shp_opx, shp_opy; /* Op sector coords */
|
||||
short shp_mission; /* mission code */
|
||||
short shp_radius; /* mission radius */
|
||||
/* end of part matching struct genitem */
|
||||
/* end of part matching struct empobj */
|
||||
unsigned char shp_nplane; /* number of planes on board */
|
||||
unsigned char shp_nland; /* number of land units on board */
|
||||
short shp_armor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue