summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-10 14:53:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-10 15:41:25 +0300
commit44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed (patch)
tree1af016870cd47c00e860673d1710b0b98a3bf101 /src/resources
parente5f83f094dd658163150ea2a41c5d4a67f21019c (diff)
downloadmanaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.gz
manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.bz2
manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.tar.xz
manaplus-44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed.zip
add support for item particles.
For this used particlefx tag in items.xml
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/itemdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index f7b1f6349..51fcb69d9 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -419,6 +419,11 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum)
loadSpriteRef(itemInfo, itemChild);
}
+ else if (xmlNameEqual(itemChild, "particlefx"))
+ {
+ display.particles.push_back(reinterpret_cast<const char*>(
+ itemChild->xmlChildrenNode->content));
+ }
else if (xmlNameEqual(itemChild, "sound"))
{
loadSoundRef(itemInfo, itemChild);