X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftrigger%2Fdoor.cpp;h=efe800444d74ad7d9d2665e0e3769693e029fce9;hb=9e89407a97c5dfb035192387121e6102bc45a8fc;hp=446f2faa95ef213fb648b7bb47f7d076ae547dce;hpb=e3bb6e46812f108f093e9ad0751a945c34b18cd3;p=supertux.git diff --git a/src/trigger/door.cpp b/src/trigger/door.cpp index 446f2faa9..efe800444 100644 --- a/src/trigger/door.cpp +++ b/src/trigger/door.cpp @@ -19,11 +19,11 @@ #include #include "door.h" -#include "gameloop.h" +#include "game_session.h" #include "resources.h" #include "object_factory.h" -#include "special/sprite.h" -#include "special/sprite_manager.h" +#include "sprite/sprite.h" +#include "sprite/sprite_manager.h" #include "video/drawing_context.h" #include "app/globals.h" #include "lisp/lisp.h" @@ -79,6 +79,7 @@ Door::action(float ) { //Check if door animation is complete if(sprite->check_animation()) { + sprite->set_action("normal"); GameSession::current()->respawn(target_sector, target_spawnpoint); } }