From ae27065c85f24004d9b48f9d5d540f48e73a74af Mon Sep 17 00:00:00 2001 From: Buginator Date: Sat, 31 Jan 2009 19:44:15 +0000 Subject: [PATCH] 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-861f7616d084 --- src/feature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feature.c b/src/feature.c index be96922e4..f999a7676 100644 --- a/src/feature.c +++ b/src/feature.c @@ -140,6 +140,7 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize) for (i = 0; i < numFeatureStats; i++) { UDWORD Width, Breadth; + int damageable = 0, tileDraw = 0, allowLOS = 0, visibleAtStart = 0; memset(psFeature, 0, sizeof(FEATURE_STATS)); @@ -147,7 +148,6 @@ BOOL loadFeatureStats(const char *pFeatureData, UDWORD bufferSize) GfxFile[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 sscanf(pFeatureData, "%[^','],%d,%d,%d,%d,%d,%[^','],%[^','],%d,%d,%d",