summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-30 16:06:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-30 16:59:12 +0300
commit60d90692e487948b77edcac63acbef34254cea5b (patch)
treec2ca72f720f835099bc65c2832d5c7df3d92abbd /src/being.cpp
parent38fe5f43b5ac41e41debed4868e81b4b4bf839ac (diff)
downloadplus-60d90692e487948b77edcac63acbef34254cea5b.tar.gz
plus-60d90692e487948b77edcac63acbef34254cea5b.tar.bz2
plus-60d90692e487948b77edcac63acbef34254cea5b.tar.xz
plus-60d90692e487948b77edcac63acbef34254cea5b.zip
remove duplicate variables.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 7003e0de3..8fc8003ff 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -3011,14 +3011,12 @@ void Being::playSfx(const SoundInfo &sound, Being *const being,
{
being->mNextSound.sound = nullptr;
being->mNextSound.time = time + sound.delay;
- being->mNextSound.sound = nullptr;
soundManager.playSfx(sound.sound, x, y);
}
else if (mNextSound.time <= time)
{ // old event sound time is gone. we can play new sound
being->mNextSound.sound = nullptr;
being->mNextSound.time = time + sound.delay;
- being->mNextSound.sound = nullptr;
soundManager.playSfx(sound.sound, x, y);
}
else