Changeset 2058 for code/branches/lod/src/orxonox
- Timestamp:
 - Oct 29, 2008, 4:00:45 PM (17 years ago)
 - Location:
 - code/branches/lod/src/orxonox
 - Files:
 - 
          
- 2 edited
 
- 
          OrxonoxStableHeaders.h (modified) (1 diff)
 - 
          gamestates/GSLevel.cc (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/lod/src/orxonox/OrxonoxStableHeaders.h
r2053 r2058 46 46 #endif 47 47 #include <Ogre.h> 48 #include <OgreProgressiveMesh.h>49 48 #include <CEGUI.h> 50 49 #include <boost/thread/recursive_mutex.hpp>  - 
        
code/branches/lod/src/orxonox/gamestates/GSLevel.cc
r2053 r2058 38 38 #include "core/CommandExecutor.h" 39 39 #include "core/ConsoleCommand.h" 40 #include "core/CommandLine.h" 40 41 #include "core/ConfigValueIncludes.h" 41 42 #include "core/CoreIncludes.h" … … 49 50 namespace orxonox 50 51 { 52 SetCommandLineArgument(level, "sample.oxw").setShortcut("l"); 53 51 54 GSLevel::GSLevel(const std::string& name) 52 55 : GameState<GSGraphics>(name) … … 157 160 // call the loader 158 161 COUT(0) << "Loading level..." << std::endl; 159 startLevel_ = new Level(Settings::getDataPath() + "levels/sample.oxw"); 162 std::string levelName; 163 CommandLine::getValue("level", &levelName); 164 startLevel_ = new Level(Settings::getDataPath() + std::string("levels/") + levelName); 160 165 Loader::open(startLevel_); 161 166 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






