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:
Markus Armbruster 2008-03-04 21:09:32 +01:00
parent d1a193ff07
commit ffc5d0cfd7
15 changed files with 111 additions and 73 deletions

View file

@ -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");
}