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:
Markus Armbruster 2008-03-04 21:15:59 +01:00
parent ffc5d0cfd7
commit f86d726406
13 changed files with 73 additions and 45 deletions

View file

@ -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