shorten unstable time
[supertux.git] / src / object / growup.cpp
index a7f7482..4ed6e72 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <math.h>
 #include "growup.h"
-#include "defines.h"
 #include "resources.h"
 #include "camera.h"
 #include "sector.h"
@@ -35,7 +34,7 @@ HitResponse
 GrowUp::collision(GameObject& other, const CollisionHit& hit)
 {
   if(other.get_flags() & FLAG_SOLID) {
-    if(fabsf(hit.normal.y) > .5) { // roof
+    if(fabsf(hit.normal.y) > .5) { // roof or ground
       physic.set_velocity_y(0);
     } else { // bumped left or right
       physic.set_velocity_x(-physic.get_velocity_x());