From 4889a6a1d3a46298e4c39dfb042360475956acbe Mon Sep 17 00:00:00 2001 From: LMH Date: Wed, 6 Feb 2013 09:37:02 -1000 Subject: [PATCH] Bug 938: Fixed some compiler warnings under Mac OS X --- src/supertux/collision.cpp | 2 +- src/supertux/tile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/supertux/collision.cpp b/src/supertux/collision.cpp index 95fbbbbc6..4e1c601d5 100644 --- a/src/supertux/collision.cpp +++ b/src/supertux/collision.cpp @@ -54,7 +54,7 @@ bool rectangle_aatriangle(Constraints* constraints, const Rectf& rect, return false; Vector normal; - float c; + float c = 0.0; Vector p1; Rectf area; switch(triangle.dir & AATriangle::DEFORM_MASK) { diff --git a/src/supertux/tile.cpp b/src/supertux/tile.cpp index d29a6c509..b81595308 100644 --- a/src/supertux/tile.cpp +++ b/src/supertux/tile.cpp @@ -271,8 +271,8 @@ bool Tile::check_position_unisolid (const Rectf& obj_bbox, float gradient; float delta_x; float delta_y; - float obj_x; - float obj_y; + float obj_x = 0.0; + float obj_y = 0.0; /* If this is not a slope, this is - again - easy */ if (!this->is_slope()) -- 2.11.0