diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-29 21:13:19 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-29 21:13:19 +0000 |
commit | c43c4cfc69133c1d1da4e89c3879b96d8edfa981 (patch) | |
tree | 3a15cf416c55fb30429ed77ad698fd17027ebd88 /src/resources/monsterdb.cpp | |
parent | af742ceb85512edd1d6883a5ea4f4188e64725be (diff) | |
download | mana-c43c4cfc69133c1d1da4e89c3879b96d8edfa981.tar.gz mana-c43c4cfc69133c1d1da4e89c3879b96d8edfa981.tar.bz2 mana-c43c4cfc69133c1d1da4e89c3879b96d8edfa981.tar.xz mana-c43c4cfc69133c1d1da4e89c3879b96d8edfa981.zip |
Committed complex (multi-sprite) monster patch - from TMW Mantis, by Jaxad0127
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r-- | src/resources/monsterdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index 04de0e7c..847b99fe 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -45,7 +45,7 @@ MonsterDB::load() if (mLoaded) return; - mUnknown.setSprite("error.xml"); + mUnknown.addSprite("error.xml"); mUnknown.setName("unnamed"); logger->log("Initializing monster database..."); @@ -96,7 +96,7 @@ MonsterDB::load() { if (xmlStrEqual(spriteNode->name, BAD_CAST "sprite")) { - currentInfo->setSprite((const char*) spriteNode->xmlChildrenNode->content); + currentInfo->addSprite((const char*) spriteNode->xmlChildrenNode->content); } if (xmlStrEqual(spriteNode->name, BAD_CAST "sound")) |