From 66e7cc1328c4256e1df51e2e9b11cf67c46858ff Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Mon, 10 May 2004 14:38:53 +0000 Subject: [PATCH] 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. SVN-Revision: 1072 --- src/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world.cpp b/src/world.cpp index 3322b9fbf..a09c771cd 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -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); -- 2.11.0