Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2009, 4:01:35 PM (16 years ago)
Author:
rgrieder
Message:

StartLevel —> DefaultLevel and moved the CommandLine argument (—level) to the LevelManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/orxonox/gamestates/GSLevel.cc

    r3245 r3249  
    3434#include "core/input/KeyBinder.h"
    3535#include "core/Clock.h"
    36 #include "core/CommandLine.h"
    3736#include "core/ConsoleCommand.h"
    3837#include "core/ConfigValueIncludes.h"
     
    5756{
    5857    DeclareGameState(GSLevel, "level", false, true);
    59 
    60     SetCommandLineArgument(level, "").shortcut("l");
    6158    SetConsoleCommand(GSLevel, showIngameGUI, true);
    6259
     
    242239        // call the loader
    243240        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());
    250242        Loader::open(startFile_s);
    251243    }
Note: See TracChangeset for help on using the changeset viewer.