Changeset 1932 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Oct 15, 2008, 3:24:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSLevel.cc
r1930 r1932 38 38 #include "core/CommandExecutor.h" 39 39 #include "core/ConsoleCommand.h" 40 #include "core/CommandLine.h"41 40 #include "core/ConfigValueIncludes.h" 42 41 #include "core/CoreIncludes.h" … … 50 49 namespace orxonox 51 50 { 52 SetCommandLineArgument(level, "sample.oxw").setShortcut("l");53 54 51 GSLevel::GSLevel(const std::string& name) 55 52 : GameState<GSGraphics>(name) … … 160 157 // call the loader 161 158 COUT(0) << "Loading level..." << std::endl; 162 std::string levelName; 163 CommandLine::getValue("level", &levelName); 164 startLevel_ = new Level(Settings::getDataPath() + std::string("levels/") + levelName); 159 startLevel_ = new Level(Settings::getDataPath() + "levels/sample.oxw"); 165 160 Loader::open(startLevel_); 166 161 }
Note: See TracChangeset
for help on using the changeset viewer.