From: Ryan Flegel Date: Fri, 5 Nov 2004 09:10:23 +0000 (+0000) Subject: - fixed warnings X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6c61f312a1f5a768e202195ca18ed5a51974bdcc;p=supertux.git - fixed warnings SVN-Revision: 2081 --- diff --git a/src/gameobjs.cpp b/src/gameobjs.cpp index 7500bb0da..ce71deede 100644 --- a/src/gameobjs.cpp +++ b/src/gameobjs.cpp @@ -466,7 +466,7 @@ SmokeCloud::draw(DrawingContext& context) } Particles::Particles(const Vector& epicenter, int min_angle, int max_angle, const Vector& initial_velocity, const Vector& acceleration, int number, Color color_, int size_, int life_time, int drawing_layer_) - : color(color_), size(size_), accel(acceleration), drawing_layer(drawing_layer_) + : accel(acceleration), color(color_), size(size_), drawing_layer(drawing_layer_) { if(life_time == 0) { diff --git a/src/player.cpp b/src/player.cpp index 83fd5d120..bb033adf2 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -171,7 +171,7 @@ Player::init() flapping_velocity = 0; // temporary to help player's choosing a flapping - int flapping_mode = MAREK_FLAP; + flapping_mode = MAREK_FLAP; // Ricardo's flapping flaps_nb = 0; @@ -663,6 +663,7 @@ Player::handle_vertical_input() && physic.get_velocity_y() < 0) { float gravity = Sector::current()->gravity; + (void)gravity; float xr = (fabsf(physic.get_velocity_x()) / MAX_RUN_XM); // XXX: magic numbers. should be a percent of gravity