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
|
@ -66,7 +66,7 @@ plan(void)
|
|||
prxy("%4d,%-4d", plane.pln_x, plane.pln_y, player->cnum);
|
||||
pr(" %1.1s %c%3d%% %3d %3d %4d %3d %3d",
|
||||
&plane.pln_wing, plane.pln_off ? '!' : ' ', plane.pln_effic,
|
||||
plane.pln_mobil, plane.pln_def, plane.pln_tech,
|
||||
plane.pln_mobil, pln_def(&plane), plane.pln_tech,
|
||||
plane.pln_range, plane.pln_harden);
|
||||
if (plane.pln_ship >= 0)
|
||||
pr("%5dS", plane.pln_ship);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue