[Super-tux-commit] supertux/lib/app globals.cpp,1.6,1.7 globals.h,1.6,1.7 setup.cpp,1.9,1.10
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-07-28 21:47:57
|
Update of /cvsroot/super-tux/supertux/lib/app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3626/lib/app Modified Files: globals.cpp globals.h setup.cpp Log Message: Added a --flip-levels argument, I guess it doesn't need any description of what it does. :) Index: setup.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/app/setup.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- setup.cpp 27 Jul 2004 19:31:37 -0000 1.9 +++ setup.cpp 28 Jul 2004 21:47:43 -0000 1.10 @@ -715,6 +715,10 @@ { launch_worldmap_mode = true; } + else if (strcmp(argv[i], "--flip-levels") == 0) + { + flip_levels_mode = true; + } else if (strcmp(argv[i], "--datadir") == 0 || strcmp(argv[i], "-d") == 0 ) { @@ -793,6 +797,7 @@ " Define how joystick buttons and axis should be mapped\n" " --leveleditor Opens the leveleditor in a file.\n" " --worldmap Opens the specified worldmap file.\n" + " --flip-levels Flip levels upside-down.\n" " -d, --datadir DIR Load Game data from DIR (default: automatic)\n" " --debug Enables the debug mode, which is useful for developers.\n" " --help Display a help message summarizing command-line\n" @@ -833,7 +838,7 @@ /* Display the usage message: */ - fprintf(fi, _("Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug] | [--usage | --help | --version] [--leveleditor] [--worldmap] FILENAME\n"), + fprintf(fi, _("Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug] | [--usage | --help | --version] [--leveleditor] [--worldmap] [--flip-levels] FILENAME\n"), prog); Index: globals.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/app/globals.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- globals.cpp 27 Jul 2004 19:31:34 -0000 1.6 +++ globals.cpp 28 Jul 2004 21:47:43 -0000 1.7 @@ -55,6 +55,7 @@ char* level_startup_file = 0; bool launch_leveleditor_mode = false; bool launch_worldmap_mode = false; +bool flip_levels_mode = false; /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */ char *st_dir, *st_save_dir; Index: globals.h =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/app/globals.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- globals.h 27 Jul 2004 19:31:37 -0000 1.6 +++ globals.h 28 Jul 2004 21:47:43 -0000 1.7 @@ -69,6 +69,7 @@ extern char* level_startup_file; extern bool launch_leveleditor_mode; extern bool launch_worldmap_mode; + extern bool flip_levels_mode; /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */ extern char* st_dir; |