From: Tobias Gläßer Date: Sun, 21 Mar 2004 21:31:09 +0000 (+0000) Subject: fixed warnings X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=80cc8fd1a079bf7795face494eb9fc2016014a32;p=supertux.git fixed warnings SVN-Revision: 305 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 2d687efc8..265429126 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -294,7 +294,7 @@ void game_event(void) int game_action(void) { - int i; + unsigned int i; /* (tux_dying || next_level) */ if (tux.dying || next_level) @@ -457,7 +457,8 @@ int game_action(void) void game_draw(void) { - int x, y, i, s; + int y, s; + unsigned int i,x; /* Draw screen: */ @@ -1565,7 +1566,7 @@ void trygrabdistro(float x, float y, int bounciness) void trybumpbadguy(float x, float y) { - int i; + unsigned int i; /* Bad guys: */ diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 0ecf74a10..c7dd55758 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -817,7 +817,7 @@ void le_drawinterface() void le_drawlevel() { - int y,x,i,s; + unsigned int y,x,i,s; /* Draw the real background */ if(le_current_level->bkgd_image[0] != '\0') @@ -1312,8 +1312,9 @@ void le_change(float x, float y, unsigned char c) { if(le_current_level != NULL) { - int xx,yy,i; + int xx,yy; int x1, x2, y1, y2; + unsigned int i; /* level_changed = YES; */