- barebones BadGuyManager -> ObjectManager
[supertux.git] / src / badguy.cpp
index 7b8db66..c74e677 100644 (file)
@@ -714,7 +714,7 @@ BadGuy::action(double frame_ratio)
     }
 
   // BadGuy fall below the ground
-  if (base.y > screen->h) {
+  if (base.y > World::current()->get_level()->height * 32) {
     remove_me();
     return;
   }