Don't do string objects tests this way!
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 19 May 2004 18:22:48 +0000 (18:22 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 19 May 2004 18:22:48 +0000 (18:22 +0000)
SVN-Revision: 1272

src/gameobjs.cpp

index bb212aa..8787bb9 100644 (file)
@@ -159,7 +159,7 @@ BouncyBrick::draw()
 
       // FIXME: overdrawing hack to clean the tile from the screen to
       // paint it later at on offseted position
-      if(plevel->bkgd_image[0] == '\0')
+      if(plevel->img_bkgd)
         {
           fillrect(base.x - scroll_x, base.y - scroll_y,
                    32,32,