Don't store ship stats in struct shpstr
New shp_armor(), shp_speed(), shp_visib(), shp_frnge(), shp_glim() replace the struct shpstr members with the same names.
This commit is contained in:
parent
ffc5d0cfd7
commit
f86d726406
13 changed files with 73 additions and 45 deletions
|
@ -291,7 +291,7 @@ shiprepair(struct shpstr *ship, struct natstr *np, struct bp *bp, int etus)
|
|||
|
||||
wf = 0;
|
||||
/* only military can work on a military boat */
|
||||
if (ship->shp_glim > 0)
|
||||
if (mp->m_glim != 0)
|
||||
wf = etus * ship->shp_item[I_MILIT] / 2;
|
||||
else
|
||||
wf = etus * (ship->shp_item[I_CIVIL] / 2 + ship->shp_item[I_MILIT] / 5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue