From: Ingo Ruhnke Date: Thu, 25 Mar 2004 19:10:00 +0000 (+0000) Subject: - fixed levelend (well, maybe more of an workaround X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a3f0fcae2b33c97de3d255ac1a43b52bd6c758b1;p=supertux.git - fixed levelend (well, maybe more of an workaround SVN-Revision: 369 --- diff --git a/src/level.cpp b/src/level.cpp index a2fdb97ef..34241ac2e 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -434,19 +434,10 @@ int level_load(st_level* plevel, const char* filename) /* Set the global gravity to the latest loaded level's gravity */ gravity = plevel->gravity; - /* Mark the end position of this level! - Is a bit wrong here thought * / - - for (y = 0; y < 15; ++y) - { - for (x = 0; x < plevel->width; ++x) - { - if(plevel->tiles[y][x] == '|') - { - if(x*32 > endpos) - endpos = x*32; - } - } - }*/ + // Mark the end position of this level! + // FIXME: -10 is a rather random value, we still need some kind of + // real levelend gola + endpos = 32*(plevel->width-10); fclose(fi); return 0;