summaryrefslogtreecommitdiff
path: root/VegetationConfiguration.cpp
diff options
context:
space:
mode:
authorKris Parker2009-12-01 12:36:50 +0000
committerKris Parker2009-12-01 12:36:50 +0000
commit11359d08813a3151d86f57903971c29323314301 (patch)
tree0dcf2fe32142d9e120f98db39a38c83763eef6b5 /VegetationConfiguration.cpp
parentf1d264209d1e28be6e766874c84da15f88a675b6 (diff)
downloadstonesense-11359d08813a3151d86f57903971c29323314301.tar.gz
stonesense-11359d08813a3151d86f57903971c29323314301.tar.bz2
stonesense-11359d08813a3151d86f57903971c29323314301.tar.xz
reading the sprite indexes helps when the time comes to draw the correct sprite
Diffstat (limited to 'VegetationConfiguration.cpp')
-rw-r--r--VegetationConfiguration.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/VegetationConfiguration.cpp b/VegetationConfiguration.cpp
index f47edbe..136f833 100644
--- a/VegetationConfiguration.cpp
+++ b/VegetationConfiguration.cpp
@@ -60,6 +60,7 @@ bool addSingleVegetationConfig( TiXmlElement* elemRoot, vector<VegetationConfig
bool dead = (deadstr && deadstr[0]);
const char* saplingstr = elemTree->Attribute("sapling");
bool sapling = (saplingstr && saplingstr[0]);
+ sheetIndexStr = elemTree->Attribute("sheetIndex");
/* No animated trees.
But we may repurpose it later to make a xyz variance?
sprite.animFrames = getAnimFrames(elemProfession->Attribute("frames"));