From 343809fe458a08bf96fe4f537db2d81d7523632e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Oct 2013 02:03:12 +0300 Subject: Add new item sound events constants. --- src/resources/beinginfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/beinginfo.cpp') diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 84d32f623..92169314a 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -104,7 +104,8 @@ void BeingInfo::setTargetCursorSize(const std::string &size) } } -void BeingInfo::addSound(const SoundEvent event, const std::string &filename, +void BeingInfo::addSound(const ItemSoundEvent event, + const std::string &filename, const int delay) { if (mSounds.find(event) == mSounds.end()) @@ -114,11 +115,11 @@ void BeingInfo::addSound(const SoundEvent event, const std::string &filename, mSounds[event]->push_back(SoundInfo("sfx/" + filename, delay)); } -const SoundInfo &BeingInfo::getSound(const SoundEvent event) const +const SoundInfo &BeingInfo::getSound(const ItemSoundEvent event) const { static SoundInfo emptySound("", 0); - const SoundEvents::const_iterator i = mSounds.find(event); + const ItemSoundEvents::const_iterator i = mSounds.find(event); if (i == mSounds.end()) return emptySound; -- cgit v1.2.3-60-g2f50