- Timestamp:
- Dec 11, 2017, 4:35:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/infos/GametypeInfo.cc
r11638 r11662 318 318 { 319 319 this->getLevel()->getScriptableController()->setPlayer(player); 320 // TODO Fix for relative paths 321 this->getLevel()->getScriptableController()->runScript(this->getLevel()->getFilename() + "/" + this->getLevel()->getScript()); 320 321 std::string script = this->getLevel()->getScript(); 322 if(script.at(0) != '/') 323 script = "../levels/" + script; // Not very dynamic 324 this->getLevel()->getScriptableController()->runScript(script); 322 325 } 323 326 }
Note: See TracChangeset
for help on using the changeset viewer.