Remove unused gfxScaling of features

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2789 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-11-10 22:13:58 +00:00
parent feb9dbdce6
commit a204e399d3
2 changed files with 0 additions and 8 deletions

View File

@ -64,7 +64,6 @@ FEATURE_STATS *asFeatureStats;
UDWORD numFeatureStats;
//Value is stored for easy access to this feature in destroyDroid()/destroyStruct()
//UDWORD droidFeature;
UDWORD structFeature;
UDWORD oilResFeature;
@ -82,7 +81,6 @@ void featureInitVars(void)
{
asFeatureStats = NULL;
numFeatureStats = 0;
//droidFeature = 0;
structFeature = 0;
oilResFeature = 0;
}
@ -387,17 +385,14 @@ FEATURE * buildFeature(FEATURE_STATS *psStats, UDWORD x, UDWORD y,BOOL FromSave)
if(psStats->subType == FEAT_BUILD_WRECK)
{
psFeature->direction = rand() % 360;
psFeature->gfxScaling = (UWORD)(80 + (10 - rand()%20)); // put into define
}
else if(psStats->subType == FEAT_TREE)
{
psFeature->direction = rand() % 360;
psFeature->gfxScaling = (UWORD) (100 + (14-rand()%28));
}
else
{
psFeature->direction = 0;
psFeature->gfxScaling = 100; // but irrelevant anyway, cos it's not scaled
}
//psFeature->damage = featureDamage;
psFeature->selected = FALSE;

View File

@ -91,11 +91,8 @@ typedef struct _feature
UDWORD startTime; /*time the feature was created - valid for
wrecked droids and structures */
UDWORD body; /* current body points */
UWORD gfxScaling; // how much to scale the graphic by - for variation - spice of life 'n all that
UDWORD timeLastHit;
BOOL bTargetted;
} FEATURE;
#endif