ignore messages.pot
[supertux.git] / src / object / gameobjs.cpp
index bce0f21..e863be3 100644 (file)
 #include <iostream>
 #include <cmath>
 
-#include "app/globals.h"
 #include "tile.h"
 #include "tile_manager.h"
-#include "gameloop.h"
+#include "game_session.h"
 #include "gameobjs.h"
-#include "special/sprite_manager.h"
+#include "sprite/sprite_manager.h"
 #include "resources.h"
 #include "sector.h"
 #include "tilemap.h"
 #include "video/drawing_context.h"
 #include "camera.h"
+#include "main.h"
 
 BouncyCoin::BouncyCoin(const Vector& pos)
   : position(pos)
@@ -222,8 +222,8 @@ Particles::action(float elapsed_time)
     (*i)->vel.x += accel.x * elapsed_time;
     (*i)->vel.y += accel.y * elapsed_time;
 
-    if((*i)->pos.x < camera.x || (*i)->pos.x > screen->w + camera.x ||
-       (*i)->pos.y < camera.y || (*i)->pos.y > screen->h + camera.y) {
+    if((*i)->pos.x < camera.x || (*i)->pos.x > SCREEN_WIDTH + camera.x ||
+       (*i)->pos.y < camera.y || (*i)->pos.y > SCREEN_HEIGHT + camera.y) {
       delete (*i);
       i = particles.erase(i);
     } else {