From efa151aa7345e849e88b6caa365678ea4d3fbfc4 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 15 Feb 2015 19:34:15 +0100 Subject: [PATCH] Do not implicitly set extensions of script files. --- data/levels/Level1.xml | 4 ++-- trigger.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/levels/Level1.xml b/data/levels/Level1.xml index d66ef6e..1993944 100644 --- a/data/levels/Level1.xml +++ b/data/levels/Level1.xml @@ -1332,7 +1332,7 @@ 0.2 true 0 - openFirstDoor + openFirstDoor.lua 1 133 0 @@ -1347,7 +1347,7 @@ 0.2 false 0 - openFirstDoorUndo + openFirstDoorUndo.lua 1 133 0 diff --git a/trigger.cc b/trigger.cc index dd2a8b7..d148fc6 100644 --- a/trigger.cc +++ b/trigger.cc @@ -5,7 +5,7 @@ Trigger::Trigger(glm::vec3 position, float distance, bool isBigger, Object* obje this->distance=distance; this->isBigger=isBigger; this->object=object; - this->luaScript= scriptPath + luaScript + ".lua"; + this->luaScript= scriptPath + luaScript; this->L = L; if(L == nullptr){ printf("L is NULL in trigger!\n");