lazily load tile images to speedup startup times
[supertux.git] / src / trigger / door.cpp
index 43a4b29..4c338a5 100644 (file)
@@ -77,7 +77,7 @@ void
 Door::action(float )
 {
   //Check if door animation is complete
-  if (!sprite->check_animation()) {
+  if(sprite->check_animation()) {
     GameSession::current()->respawn(target_sector, target_spawnpoint);
   }
 }