From 43d533aec35911f87c830e6d91c7a4bbe93c12f5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 28 May 2013 03:08:51 +0000 Subject: [PATCH] added ability to reference sound and videos in lua using variables: {TECHTREEPATH}, {SCENARIOPATH}, {TUTORIALPATH} example: playStreamingSound('{SCENARIOPATH}/music/myambient.ogg') --- source/glest_game/world/scenario.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/world/scenario.cpp b/source/glest_game/world/scenario.cpp index 206fc0513..618bbbb87 100644 --- a/source/glest_game/world/scenario.cpp +++ b/source/glest_game/world/scenario.cpp @@ -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) {