From: Christoph Sommer Date: Sat, 1 Jul 2006 16:12:42 +0000 (+0000) Subject: Door creaks when opening, not when walking through X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9181a915f3688c750df8888d67bf1defeaab1bdf;p=supertux.git Door creaks when opening, not when walking through SVN-Revision: 3832 --- diff --git a/src/trigger/door.cpp b/src/trigger/door.cpp index 29220d21c..a966908b0 100644 --- a/src/trigger/door.cpp +++ b/src/trigger/door.cpp @@ -121,6 +121,7 @@ Door::event(Player& , EventType type) // if door was activated, start opening it if (type == EVENT_ACTIVATE) { state = OPENING; + sound_manager->play("sounds/door.wav"); sprite->set_action("opening", 1); } break; @@ -142,7 +143,6 @@ Door::collision(GameObject& other, const CollisionHit& hit) case OPENING: break; case OPEN: -sound_manager->play("sounds/door.wav"); { // if door is open and was touched by a player, teleport the player Player* player = dynamic_cast (&other);