From: Ricardo Cruz Date: Mon, 10 May 2004 14:38:53 +0000 (+0000) Subject: Bug fixed. That test was just reading some random memory, don't forget we are talking... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=66e7cc1328c4256e1df51e2e9b11cf67c46858ff;p=supertux.git 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 --- 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);