[Super-tux-commit] supertux/src world.cpp,1.71,1.72
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-10 14:39:02
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4714/src Modified Files: world.cpp Log Message: Bug fixed. That test was just reading some random memory, don't forget we are talking about a string object here, not a char array pointer. Congrats go to Ingo. Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- world.cpp 10 May 2004 13:21:41 -0000 1.71 +++ world.cpp 10 May 2004 14:38:53 -0000 1.72 @@ -178,7 +178,7 @@ int y,x; /* Draw the real background */ - if(get_level()->bkgd_image[0] != '\0') + if(level->img_bkgd) { int s = (int)((float)scroll_x * ((float)level->bkgd_speed/60.)) % screen->w; level->img_bkgd->draw_part(s, 0,0,0,level->img_bkgd->w - s, level->img_bkgd->h); |