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");