diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-10 14:53:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-10 15:41:25 +0300 |
commit | 44e5d8bcb7fea443ca9ed3844454b11ac6e4dbed (patch) | |
tree | 1af016870cd47c00e860673d1710b0b98a3bf101 /src/resources | |
parent | e5f83f094dd658163150ea2a41c5d4a67f21019c (diff) | |
download | manaplus-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.cpp | 5 |
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); |