[Super-tux-commit] supertux/src collision.cpp,1.20,1.21
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-04-29 13:54:30
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31411/src Modified Files: collision.cpp Log Message: apparently we get a 0 tile from time to time, no idea yet why Index: collision.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/collision.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- collision.cpp 29 Apr 2004 13:44:58 -0000 1.20 +++ collision.cpp 29 Apr 2004 13:54:21 -0000 1.21 @@ -56,7 +56,7 @@ for(int x = starttilex; x*32 < max_x; ++x) { for(int y = starttiley; y*32 < max_y; ++y) { Tile* tile = tilemanager.get(level.get_tile_at(x, y)); - if(tile->solid) + if(tile && tile->solid) return true; } } |