diff --git a/spacewarPlayer.h b/spacewarPlayer.h index 388bf36..76828b1 100644 --- a/spacewarPlayer.h +++ b/spacewarPlayer.h @@ -42,7 +42,8 @@ static inline void calculateGravity(xyVector * starPosition, ship * shipUnderGra } else { - gravityAcceleration = 1; + shipUnderGravity->position.xComponent = random() % 4000; + shipUnderGravity->position.yComponent = random() % 4000; } } else