diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-16 23:06:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-18 21:31:52 +0300 |
commit | 67d3b8c193b51bbf892fd965547746511e8ddf87 (patch) | |
tree | b11031d009c6df44263f0be9f01503fae2c09615 /src/resources/itemdb.cpp | |
parent | 884c064f762c4d5ca23458ea43d9c34348259840 (diff) | |
download | manaplus-67d3b8c193b51bbf892fd965547746511e8ddf87.tar.gz manaplus-67d3b8c193b51bbf892fd965547746511e8ddf87.tar.bz2 manaplus-67d3b8c193b51bbf892fd965547746511e8ddf87.tar.xz manaplus-67d3b8c193b51bbf892fd965547746511e8ddf87.zip |
add delay to action sounds.
delay now unused.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 400c42d4f..f5d6e54ce 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -672,14 +672,15 @@ void loadSoundRef(ItemInfo *const itemInfo, const XmlNodePtr node) const std::string event = XML::getProperty(node, "event", ""); const std::string filename = reinterpret_cast<const char*>( node->xmlChildrenNode->content); + const int delay = XML::getProperty(node, "delay", 0); if (event == "hit") { - itemInfo->addSound(EQUIP_EVENT_HIT, filename); + itemInfo->addSound(SOUND_EVENT_HIT, filename, delay); } else if (event == "strike" || event == "miss") { - itemInfo->addSound(EQUIP_EVENT_STRIKE, filename); + itemInfo->addSound(SOUND_EVENT_MISS, filename, delay); } else { |