#include "resources.h"
#include "player.h"
#include "scene.h"
+#include "sector.h"
#include "special/sprite_manager.h"
#include "video/drawing_context.h"
void
OneUp::action(float elapsed_time)
{
+ if(!Sector::current()->inside(bbox))
+ remove_me();
+
movement = physic.get_movement(elapsed_time);
}
}
HitResponse
-OneUp::collision(GameObject& other, const CollisionHit& hit)
+OneUp::collision(GameObject& other, const CollisionHit& )
{
Player* player = dynamic_cast<Player*> (&other);
if(player) {