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

@ -354,19 +354,19 @@ sdump(void)
pr(" %d", ship.shp_item[I_RAD]);
break;
case 27:
pr(" %d", ship.shp_armor);
pr(" %d", shp_armor(&ship));
break;
case 28:
pr(" %d", ship.shp_speed);
pr(" %d", shp_speed(&ship));
break;
case 29:
pr(" %d", ship.shp_visib);
pr(" %d", shp_visib(&ship));
break;
case 30:
pr(" %d", ship.shp_frnge);
pr(" %d", shp_frnge(&ship));
break;
case 31:
pr(" %d", ship.shp_glim);
pr(" %d", shp_glim(&ship));
break;
case 32:
/*