diff options
| author | Japa | 2010-05-04 10:54:06 +0000 |
|---|---|---|
| committer | Japa | 2010-05-04 10:54:06 +0000 |
| commit | 4a51199a91b37a97edca760ffa22629499fd8d83 (patch) | |
| tree | a84f3f5d37263034d38b347ed5d48a28319c6497 /CreatureConfiguration.cpp | |
| parent | 6f188cc32530c8a422f1223741acb81ae7535c4d (diff) | |
| download | stonesense-4a51199a91b37a97edca760ffa22629499fd8d83.tar.gz stonesense-4a51199a91b37a97edca760ffa22629499fd8d83.tar.bz2 stonesense-4a51199a91b37a97edca760ffa22629499fd8d83.tar.xz | |
updated to the latest DFhack, added the functionality to have seperate sprites for blocks, boulders, etc.
Diffstat (limited to 'CreatureConfiguration.cpp')
| -rw-r--r-- | CreatureConfiguration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CreatureConfiguration.cpp b/CreatureConfiguration.cpp index 3eb408c..c553ff9 100644 --- a/CreatureConfiguration.cpp +++ b/CreatureConfiguration.cpp @@ -78,9 +78,9 @@ void pushCreatureConfig( vector<vector<CreatureConfiguration>*>& knownCreatures, {
//resize using hint from creature name list
unsigned int newsize = gameID +1;
- if (newsize <= contentLoader.creatureMaterials.size())
+ if (newsize <= contentLoader.Mats->race.size())
{
- newsize = contentLoader.creatureMaterials.size() + 1;
+ newsize = contentLoader.Mats->race.size() + 1;
}
knownCreatures.resize(newsize);
}
@@ -94,7 +94,7 @@ void pushCreatureConfig( vector<vector<CreatureConfiguration>*>& knownCreatures, }
bool addSingleCreatureConfig( TiXmlElement* elemCreature, vector<vector<CreatureConfiguration>*>& knownCreatures, int basefile ){
- int gameID = lookupIndexedType(elemCreature->Attribute("gameID"),contentLoader.creatureMaterials);
+ int gameID = lookupIndexedType(elemCreature->Attribute("gameID"),contentLoader.Mats->race);
if (gameID == INVALID_INDEX)
return false;
const char* sheetIndexStr;
|
