Had to change the #includes of dependend headers from "dir/header.h" to "../dir...
[supertux.git] / lib / math / physic.cpp
index 09568f8..0873cde 100644 (file)
 
 #include <cstdio>
 
-#include "math/physic.h"
-#include "special/timer.h"
+#include "../math/physic.h"
+#include "../special/timer.h"
+
+using namespace SuperTux;
 
 Physic::Physic()
     : ax(0), ay(0), vx(0), vy(0), gravity_enabled(true)
@@ -118,7 +120,7 @@ Physic::enable_gravity(bool enable_gravity)
 }
 
 void
-Physic::apply(float elapsed_time, float &x, float &y, float& gravity)
+Physic::apply(float elapsed_time, float &x, float &y, float gravity)
 {
   float grav;
   if(gravity_enabled)
@@ -133,7 +135,7 @@ Physic::apply(float elapsed_time, float &x, float &y, float& gravity)
 }
 
 void
-Physic::apply(Vector& vector, float elapsed_time, float& gravity)
+Physic::apply(Vector& vector, float elapsed_time, float gravity)
 {
   apply(elapsed_time, vector.x, vector.y, gravity);
 }