(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
|
|
@ -43,7 +43,7 @@
|
|||
#define PLANE_MINEFF 10
|
||||
|
||||
struct plnstr {
|
||||
/* initial part must match struct genitem */
|
||||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
natid pln_own; /* owning country */
|
||||
short pln_uid; /* plane unit id */
|
||||
|
|
@ -59,7 +59,7 @@ struct plnstr {
|
|||
coord pln_opy; /* Op sector coords */
|
||||
short pln_mission; /* mission code */
|
||||
short pln_radius; /* mission radius */
|
||||
/* end of part matching struct genitem */
|
||||
/* end of part matching struct empobj */
|
||||
unsigned char pln_range; /* total distance, not radius */
|
||||
unsigned char pln_range_max; /* max range for this plane */
|
||||
short pln_ship; /* pointer to carrier */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue