(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
|
@ -64,10 +64,10 @@ typedef enum {
|
|||
* If we had working virtual selectors, we could remove r_cnum and r_realm.
|
||||
*/
|
||||
struct realmstr {
|
||||
/* initial part must match struct genitem */
|
||||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
natid r_cnum; /* country number */
|
||||
/* end of part matching struct genitem */
|
||||
/* end of part matching struct empobj */
|
||||
short r_uid; /* realm table index */
|
||||
unsigned short r_realm; /* realm number */
|
||||
short r_xl, r_xh; /* horizontal bounds */
|
||||
|
@ -76,10 +76,10 @@ struct realmstr {
|
|||
};
|
||||
|
||||
struct natstr {
|
||||
/* initial part must match struct genitem */
|
||||
/* initial part must match struct empobj */
|
||||
short ef_type;
|
||||
natid nat_cnum; /* our country number */
|
||||
/* end of part matching struct genitem */
|
||||
/* end of part matching struct empobj */
|
||||
nat_status nat_stat;
|
||||
char nat_cnam[20]; /* country name */
|
||||
char nat_pnam[20]; /* representative */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue