summaryrefslogtreecommitdiffstats
path: root/pacman-c++/common/actor.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-05-11 17:38:29 +0200
committermanuel <manuel@mausz.at>2011-05-11 17:38:29 +0200
commitca29fc0babe8fc985a9e4656f80fc7faec4ac8a5 (patch)
treefb48f74ffcddcd8b260ebf78062623427aeda862 /pacman-c++/common/actor.cpp
parent535c342a2f28e0a1e90010b2f0ff4018eeeb200a (diff)
downloadfoop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.tar.gz
foop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.tar.bz2
foop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.zip
- fix audio plugin and make that a real interface
- that fixes a duplicate statis audiomanager (1x pacman, 1x audio plugin) on windows - display won/lost dialog upon gameend
Diffstat (limited to 'pacman-c++/common/actor.cpp')
-rw-r--r--pacman-c++/common/actor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pacman-c++/common/actor.cpp b/pacman-c++/common/actor.cpp
index 83a54e3..de8d77e 100644
--- a/pacman-c++/common/actor.cpp
+++ b/pacman-c++/common/actor.cpp
@@ -296,21 +296,21 @@ void Actor::die()
296 setZValue(zValue() * 10); 296 setZValue(zValue() * 10);
297 m_dieing->start(); 297 m_dieing->start();
298 if (m_local) 298 if (m_local)
299 AudioManager::self()->audioPlayer()->play(Sound::Die); 299 AudioManager::self()->play(Sound::Die);
300} 300}
301 301
302void Actor::eatingFruit() 302void Actor::eatingFruit()
303{ 303{
304 if (!m_local) 304 if (!m_local)
305 return; 305 return;
306 AudioManager::self()->audioPlayer()->play(Sound::EatingFruit); 306 AudioManager::self()->play(Sound::EatingFruit);
307} 307}
308 308
309void Actor::eatingPacman() 309void Actor::eatingPacman()
310{ 310{
311 if (!m_local) 311 if (!m_local)
312 return; 312 return;
313 AudioManager::self()->audioPlayer()->play(Sound::EatingGhost); 313 AudioManager::self()->play(Sound::EatingGhost);
314} 314}
315 315
316void Actor::startEating() 316void Actor::startEating()