From ec00c25274e22da478564b0d204a1d31650fab89 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 May 2011 16:58:49 +0000 Subject: [PATCH] Removed unused numX, numY member variables, and added initializer for firstHeaderWrite. --- src/osgPlugins/txp/trpage_warchive.cpp | 2 ++ src/osgPlugins/txp/trpage_write.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/txp/trpage_warchive.cpp b/src/osgPlugins/txp/trpage_warchive.cpp index 9c0016d35..6095ce5d7 100644 --- a/src/osgPlugins/txp/trpage_warchive.cpp +++ b/src/osgPlugins/txp/trpage_warchive.cpp @@ -85,6 +85,8 @@ void trpgwArchive::Init(char *inDir,char *inFile,trpg2dPoint &sw, trpg2dPoint &n isRegenerate = true; errMess[0] = '\0'; + firstHeaderWrite = true; + // TODO: have a "setup from file" method for trpgwArchive // Open a Read Archive to get the rest of the info we need diff --git a/src/osgPlugins/txp/trpage_write.h b/src/osgPlugins/txp/trpage_write.h index d1c4f7b42..bd22e3ed5 100644 --- a/src/osgPlugins/txp/trpage_write.h +++ b/src/osgPlugins/txp/trpage_write.h @@ -334,7 +334,7 @@ protected: trpgTileTable tileTable; - int numX,numY,numLod; + int numLod; TileMode tileMode; trpgwAppFile *tileFile; @@ -342,7 +342,7 @@ protected: std::vector tileFiles; - std::vector externalTiles; + std::vector externalTiles; int maxTileFileLen;