summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 22:37:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 22:37:08 +0300
commitb29f54f0b8010a73550b9b5fed534253170b6f03 (patch)
tree226f5a9bb3f515232e29951562d13b0aa5054bd4 /src/resources/db
parentedc6ce053eafbaaa55fcf7728e449d9e458a1ddc (diff)
downloadplus-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.gz
plus-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.bz2
plus-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.xz
plus-b29f54f0b8010a73550b9b5fed534253170b6f03.zip
Allow play sound effect if show emote.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/emotedb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp
index 696d5a88a..a27547db0 100644
--- a/src/resources/db/emotedb.cpp
+++ b/src/resources/db/emotedb.cpp
@@ -109,6 +109,7 @@ void EmoteDB::loadXmlFile(const std::string &fileName)
else
currentInfo = new EmoteInfo;
currentInfo->time = XML::getProperty(emoteNode, "time", 500);
+ currentInfo->effectId = XML::getProperty(emoteNode, "effect", -1);
for_each_xml_child_node(spriteNode, emoteNode)
{
@@ -182,6 +183,7 @@ void EmoteDB::loadSpecialXmlFile(const std::string &fileName)
if (!currentInfo)
currentInfo = new EmoteInfo;
currentInfo->time = XML::getProperty(emoteNode, "time", 500);
+ currentInfo->effectId = XML::getProperty(emoteNode, "effect", -1);
for_each_xml_child_node(spriteNode, emoteNode)
{