[Super-tux-commit] supertux/src level.cpp,1.68.2.1,1.68.2.2
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-07-27 12:00:32
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9898/src Modified Files: Tag: supertux_0_1_1_branch level.cpp Log Message: Fixed bug: in the last commit that avoided the crash in level bigger than 15 vertical tiles, I was cutting the X tiles, not the Y. It was a typo in the name of the variable. Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.68.2.1 retrieving revision 1.68.2.2 diff -u -d -r1.68.2.1 -r1.68.2.2 --- level.cpp 26 Jul 2004 18:04:30 -0000 1.68.2.1 +++ level.cpp 27 Jul 2004 12:00:14 -0000 1.68.2.2 @@ -480,9 +480,9 @@ int j = 0; for(vector<int>::iterator it = ia_tm.begin(); it != ia_tm.end(); ++it, ++i) { - if(i > 15) + if(j >= 15) { - std::cerr << "Error: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; + std::cerr << "Warning: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; break; } @@ -497,9 +497,9 @@ i = j = 0; for(vector<int>::iterator it = bg_tm.begin(); it != bg_tm.end(); ++it, ++i) { - if(i > 15) + if(j >= 15) { - std::cerr << "Error: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; + std::cerr << "Warning: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; break; } @@ -514,9 +514,9 @@ i = j = 0; for(vector<int>::iterator it = fg_tm.begin(); it != fg_tm.end(); ++it, ++i) { - if(i > 15) + if(j >= 15) { - std::cerr << "Error: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; + std::cerr << "Warning: Level higher than 15 tiles. Ignoring by cutting tiles.\n"; break; } |