diff options
| author | Kris Parker | 2009-12-17 14:54:06 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-12-17 14:54:06 +0000 |
| commit | f45f85f51c95f6d04234035d2e7d26c7c68ce907 (patch) | |
| tree | 5fbe15f49e249ced93da43c78ebfa929af7409b2 /GroundMaterialConfiguration.cpp | |
| parent | c69d4f842c8bdfd259cd7d7116da484a87804ab7 (diff) | |
| download | stonesense-f45f85f51c95f6d04234035d2e7d26c7c68ce907.tar.gz stonesense-f45f85f51c95f6d04234035d2e7d26c7c68ce907.tar.bz2 stonesense-f45f85f51c95f6d04234035d2e7d26c7c68ce907.tar.xz | |
Use default wall/floor types rather than leaving tiles blank
Diffstat (limited to 'GroundMaterialConfiguration.cpp')
| -rw-r--r-- | GroundMaterialConfiguration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/GroundMaterialConfiguration.cpp b/GroundMaterialConfiguration.cpp index cebf60e..66397db 100644 --- a/GroundMaterialConfiguration.cpp +++ b/GroundMaterialConfiguration.cpp @@ -9,7 +9,7 @@ TerrainMaterialConfiguration::TerrainMaterialConfiguration()
{
defaultSprite.fileIndex=INVALID_INDEX;
- defaultSprite.sheetIndex=INVALID_INDEX;
+ defaultSprite.sheetIndex=UNCONFIGURED_INDEX;
//dont really care about the rest of the sprite right now.
}
@@ -17,7 +17,7 @@ TerrainMaterialConfiguration::TerrainMaterialConfiguration() TerrainConfiguration::TerrainConfiguration()
{
defaultSprite.fileIndex=INVALID_INDEX;
- defaultSprite.sheetIndex=INVALID_INDEX;
+ defaultSprite.sheetIndex=UNCONFIGURED_INDEX;
//dont really care about the rest of the sprite right now.
}
@@ -110,7 +110,7 @@ void parseWallFloorSpriteElement( TiXmlElement* elemWallFloorSprite, vector<Terr TerrainConfiguration *tConfig = configTable[lookupKeys[i]];
// if that was null we have *really* screwed up earlier
// only update if not by previous configs
- if (tConfig->defaultSprite.sheetIndex == INVALID_INDEX)
+ if (tConfig->defaultSprite.sheetIndex == UNCONFIGURED_INDEX)
{
tConfig->defaultSprite = sprite;
}
@@ -148,7 +148,7 @@ void parseWallFloorSpriteElement( TiXmlElement* elemWallFloorSprite, vector<Terr tConfig->terrainMaterials[elemIndex] = new TerrainMaterialConfiguration();
}
// only update if not set by earlier configs
- if (tConfig->terrainMaterials[elemIndex]->defaultSprite.sheetIndex == INVALID_INDEX)
+ if (tConfig->terrainMaterials[elemIndex]->defaultSprite.sheetIndex == UNCONFIGURED_INDEX)
{
tConfig->terrainMaterials[elemIndex]->defaultSprite = sprite;
}
|
