From 80cc8fd1a079bf7795face494eb9fc2016014a32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Sun, 21 Mar 2004 21:31:09 +0000 Subject: [PATCH] fixed warnings SVN-Revision: 305 --- src/gameloop.cpp | 7 ++++--- src/leveleditor.cpp | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) 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; */ -- 2.11.0