Changeset 3249 for code/branches/core4/src/orxonox/gamestates
- Timestamp:
- Jun 29, 2009, 4:01:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gamestates/GSLevel.cc
r3245 r3249 34 34 #include "core/input/KeyBinder.h" 35 35 #include "core/Clock.h" 36 #include "core/CommandLine.h"37 36 #include "core/ConsoleCommand.h" 38 37 #include "core/ConfigValueIncludes.h" … … 57 56 { 58 57 DeclareGameState(GSLevel, "level", false, true); 59 60 SetCommandLineArgument(level, "").shortcut("l");61 58 SetConsoleCommand(GSLevel, showIngameGUI, true); 62 59 … … 242 239 // call the loader 243 240 COUT(0) << "Loading level..." << std::endl; 244 std::string levelName; 245 CommandLine::getValue("level", &levelName); 246 if (levelName == "") 247 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + LevelManager::getInstance().getStartLevel()); 248 else 249 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + levelName); 241 startFile_s = new XMLFile(Core::getMediaPathString() + "levels" + '/' + LevelManager::getInstance().getDefaultLevel()); 250 242 Loader::open(startFile_s); 251 243 }
Note: See TracChangeset
for help on using the changeset viewer.