From: Ingo Ruhnke Date: Thu, 25 Mar 2004 19:02:04 +0000 (+0000) Subject: - moved a few int's inside the for-loops X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=23747a8fbda25a5f0a0dd2c75c3c3c970dc0a2d6;p=supertux.git - moved a few int's inside the for-loops - replaced a old '.' with 0 SVN-Revision: 368 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index f5ab55bb5..03e8f6e2d 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -1415,9 +1415,6 @@ Tile* gettile(float x, float y) return TileManager::instance()->get(shape(x, y)); } -/* Is is ground? */ - - bool issolid(float x, float y) { Tile* tile = TileManager::instance()->get @@ -1623,7 +1620,7 @@ void trygrabdistro(float x, float y, int bounciness) void trybumpbadguy(float x, float y) { /* Bad guys: */ - for (unsigned int i; i = 0; i < bad_guys.size(); i++) + for (unsigned int i = 0; i < bad_guys.size(); i++) { if (bad_guys[i].base.x >= x - 32 && bad_guys[i].base.x <= x + 32 && bad_guys[i].base.y >= y - 16 && bad_guys[i].base.y <= y + 16)