From a3f0fcae2b33c97de3d255ac1a43b52bd6c758b1 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 25 Mar 2004 19:10:00 +0000 Subject: [PATCH] - fixed levelend (well, maybe more of an workaround SVN-Revision: 369 --- src/level.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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; -- 2.11.0