added ability to reference sound and videos in lua using variables: {TECHTREEPATH}, {SCENARIOPATH}, {TUTORIALPATH} example:

playStreamingSound('{SCENARIOPATH}/music/myambient.ogg')
This commit is contained in:
Mark Vejvoda 2013-05-28 03:08:51 +00:00
parent 72480bc576
commit 43d533aec3
1 changed files with 1 additions and 1 deletions

View File

@ -58,8 +58,8 @@ Checksum Scenario::load(const string &path) {
//Properties::setTechtreePath();
//printf("path [%s]\n",path.c_str());
string scenarioFolder = cutLastFile(formatPath(path));
scenarioFolder = cutLastFile(scenarioFolder);
endPathWithSlash(scenarioFolder);
if(isTutorial == false) {