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
|
@ -82,7 +82,7 @@ ship_damage(struct shpstr *sp, int dam)
|
|||
void
|
||||
shipdamage(struct shpstr *sp, int dam)
|
||||
{
|
||||
ship_damage(sp, (int)(dam / (1.0 + sp->shp_armor / 100.0)));
|
||||
ship_damage(sp, (int)(dam / (1.0 + shp_armor(sp) / 100.0)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue