Bug fixed. That test was just reading some random memory, don't forget we are talking...
authorRicardo Cruz <rick2@aeiou.pt>
Mon, 10 May 2004 14:38:53 +0000 (14:38 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Mon, 10 May 2004 14:38:53 +0000 (14:38 +0000)
Congrats go to Ingo.

SVN-Revision: 1072

src/world.cpp

index 3322b9f..a09c771 100644 (file)
@@ -178,7 +178,7 @@ World::draw()
   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);