[Super-tux-commit] supertux/src gameloop.cpp,1.30,1.31
Brought to you by:
wkendrick
From: Ingo R. <gr...@us...> - 2004-03-25 19:12:54
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5911 Modified Files: gameloop.cpp Log Message: - moved a few int's inside the for-loops - replaced a old '.' with 0 Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- gameloop.cpp 25 Mar 2004 19:01:35 -0000 1.30 +++ gameloop.cpp 25 Mar 2004 19:02:04 -0000 1.31 @@ -1415,9 +1415,6 @@ 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 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) |