forgot to include tinygettext dir in Jamfile
[supertux.git] / src / trigger / hatch.cpp
index 6019642..8e264df 100644 (file)
 #include <config.h>
 
 #include "hatch.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"
 #include "lisp/writer.h"
 
-using namespace SuperTux;
-
 Hatch::Hatch(const lisp::Lisp& reader)
 {
   reader.get("x", bbox.p1.x);
@@ -79,6 +76,7 @@ Hatch::action(float )
 {
   //Check if hatch animation is complete
   if(sprite->check_animation()) {
+    sprite->set_action("normal");
     GameSession::current()->respawn(target_sector, target_spawnpoint);
   }
 }