Skip to content

Commit

Permalink
Bug 938: Fixed some compiler warnings under Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 committed Feb 6, 2013
1 parent 60478aa commit 4889a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/supertux/collision.cpp
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/supertux/tile.cpp
Expand Up @@ -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())
Expand Down

0 comments on commit 4889a6a

Please sign in to comment.