[Super-tux-commit] supertux/src level.cpp,1.69,1.70
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-05-12 14:54:13
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18289/src Modified Files: level.cpp Log Message: Break lines on tiles as requested by Ryan. Also added a few spaces for enemies and added a comment saying that the level was made using the built-in level editor. Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -u -d -r1.69 -r1.70 --- level.cpp 11 May 2004 18:26:27 -0000 1.69 +++ level.cpp 12 May 2004 14:54:04 -0000 1.70 @@ -555,7 +555,7 @@ /* Write header: */ - fprintf(fi,";SuperTux-Level\n"); + fprintf(fi,";SuperTux level made using the built-in leveleditor\n"); fprintf(fi,"(supertux-level\n"); fprintf(fi," (version %d)\n", 1); @@ -586,6 +586,7 @@ { for(int i = 0; i < width; ++i) fprintf(fi," %d ", bg_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -595,6 +596,7 @@ { for(int i = 0; i < width; ++i) fprintf(fi," %d ", ia_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -604,6 +606,7 @@ { for(int i = 0; i < width; ++i) fprintf(fi," %d ", fg_tiles[y][i]); + fprintf(fi,"\n"); } fprintf( fi,")\n"); @@ -619,7 +622,7 @@ for(std::vector<BadGuyData>::iterator it = badguy_data.begin(); it != badguy_data.end(); ++it) - fprintf( fi,"(%s (x %d) (y %d) (stay-on-platform %s))\n", + fprintf( fi," (%s (x %d) (y %d) (stay-on-platform %s))\n", badguykind_to_string((*it).kind).c_str(),(*it).x,(*it).y, it->stay_on_platform ? "#t" : "#f"); |