Fixes ticket #237
Using C99 declaration instead of C98. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6573 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
ed2a2011f6
commit
ae27065c85
|
@ -140,6 +140,7 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize)
|
||||||
for (i = 0; i < numFeatureStats; i++)
|
for (i = 0; i < numFeatureStats; i++)
|
||||||
{
|
{
|
||||||
UDWORD Width, Breadth;
|
UDWORD Width, Breadth;
|
||||||
|
int damageable = 0, tileDraw = 0, allowLOS = 0, visibleAtStart = 0;
|
||||||
|
|
||||||
memset(psFeature, 0, sizeof(FEATURE_STATS));
|
memset(psFeature, 0, sizeof(FEATURE_STATS));
|
||||||
|
|
||||||
|
@ -147,7 +148,6 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize)
|
||||||
GfxFile[0] = '\0';
|
GfxFile[0] = '\0';
|
||||||
type[0] = '\0';
|
type[0] = '\0';
|
||||||
|
|
||||||
int damageable = 0, tileDraw = 0, allowLOS = 0, visibleAtStart = 0;
|
|
||||||
|
|
||||||
//read the data into the storage - the data is delimeted using comma's
|
//read the data into the storage - the data is delimeted using comma's
|
||||||
sscanf(pFeatureData, "%[^','],%d,%d,%d,%d,%d,%[^','],%[^','],%d,%d,%d",
|
sscanf(pFeatureData, "%[^','],%d,%d,%d,%d,%d,%[^','],%[^','],%d,%d,%d",
|
||||||
|
|
Loading…
Reference in New Issue