From: Tobias Gläßer Date: Sat, 20 Mar 2004 20:47:43 +0000 (+0000) Subject: little bug-fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2d371a2d144613307b18b6ada7133d9ea723710b;p=supertux.git little bug-fix SVN-Revision: 281 --- diff --git a/src/level.cpp b/src/level.cpp index a48422499..03d093923 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -252,12 +252,10 @@ int level_load(st_level* plevel, const char* filename) vector vi; -DEBUG_MSG("LLALAL"); if (strcmp(lisp_symbol(lisp_car(root_obj)), "level") == 0) { LispReader reader(lisp_cdr(root_obj)); - DEBUG_MSG("TAGAF"); reader.read_int("width", &plevel->width); reader.read_int("time", &plevel->time_left); reader.read_int("bkgd_red", &plevel->bkgd_red); @@ -271,7 +269,6 @@ DEBUG_MSG("LLALAL"); reader.read_int_vector("tilemap", &vi); } - DEBUG_MSG("LOLOL"); int i; for( i = 0; i < 15; ++i) @@ -283,11 +280,10 @@ DEBUG_MSG("LLALAL"); { plevel->tiles[j][i] = (*it); - if(i == plevel->width) + if(i == plevel->width - 1) { - i = 0; + i = -1; ++j; - DEBUG_MSG("joa"); } }