Don't store plane stats in struct plnstr
New pln_att(), pln_def(), pln_acc(), pln_range_max(), pln_load() replace the struct plnstr members with the same names. Make plane selectors att and def virtual.
This commit is contained in:
parent
d1a193ff07
commit
ffc5d0cfd7
15 changed files with 111 additions and 73 deletions
|
@ -849,7 +849,7 @@ pinflak_planedamage(struct plnstr *pp, struct plchrstr *pcp, natid from,
|
|||
natid plane_owner;
|
||||
int dam;
|
||||
|
||||
dam = ac_flak_dam(flak, pp->pln_def, pcp->pl_flags);
|
||||
dam = ac_flak_dam(flak, pln_def(pp), pcp->pl_flags);
|
||||
disp = 0;
|
||||
plane_owner = pp->pln_own;
|
||||
eff = pp->pln_effic;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue