summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-01 20:20:21 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-10 20:31:51 +0100
commit683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch)
tree065526585f7af480df2eae40ed0acc1595331fd4 /src/sound.cpp
parent8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff)
downloadmana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.gz
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.bz2
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.xz
mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.zip
player_node -> local_player
Reviewed-by: Ablu
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 4216c8fa..6248d247 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -290,9 +290,9 @@ void Sound::playSfx(const std::string &path, int x, int y)
{
logger->log("Sound::playSfx() Playing: %s", path.c_str());
int vol = 120;
- if (player_node && x > 0 && y > 0)
+ if (local_player && x > 0 && y > 0)
{
- Vector pos = player_node->getPosition();
+ Vector pos = local_player->getPosition();
Map *map = Game::instance()->getCurrentMap();
int dx = ((int)pos.x - x) / map->getTileWidth();
int dy = ((int)pos.y - y) / map->getTileHeight();