From 05508d396828b2539754254e9e26f823856777d8 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Tue, 20 Jul 2004 22:55:50 +0000 Subject: [PATCH] - fixed compile error SVN-Revision: 1609 --- lib/math/physic.cpp | 4 ++-- lib/math/physic.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/math/physic.cpp b/lib/math/physic.cpp index 09568f852..017449cf9 100644 --- a/lib/math/physic.cpp +++ b/lib/math/physic.cpp @@ -118,7 +118,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 +133,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); } diff --git a/lib/math/physic.h b/lib/math/physic.h index d62a2993b..74960746a 100644 --- a/lib/math/physic.h +++ b/lib/math/physic.h @@ -65,10 +65,10 @@ public: void enable_gravity(bool gravity_enabled); /// Applies the physical simulation to given x and y coordinates. - void apply(float frame_ratio, float &x, float &y, float& gravity = 10); + void apply(float frame_ratio, float &x, float &y, float gravity = 10.0f); /// applies the physical simulation to given x and y coordinates. - void apply(Vector& vector, float frame_ratio, float& gravity = 10); + void apply(Vector& vector, float frame_ratio, float gravity = 10.0f); private: /// horizontal and vertical acceleration -- 2.11.0