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
|
@ -58,10 +58,10 @@ pstat(void)
|
|||
pr(" %3d%% %4d %3d %3d %3d %3d %4d %4d",
|
||||
plane.pln_effic,
|
||||
plane.pln_tech,
|
||||
plane.pln_att,
|
||||
plane.pln_def,
|
||||
plane.pln_acc,
|
||||
plane.pln_range_max, plane.pln_load,
|
||||
pln_att(&plane),
|
||||
pln_def(&plane),
|
||||
pln_acc(&plane),
|
||||
pln_range_max(&plane), pln_load(&plane),
|
||||
plchr[(int)plane.pln_type].pl_fuel);
|
||||
pr("\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue