Do not implicitly set extensions of script files.
This commit is contained in:
parent
23fc196bea
commit
397d2729e8
@ -1332,7 +1332,7 @@
|
||||
<distance>0.2</distance>
|
||||
<isBiggerThan>true</isBiggerThan>
|
||||
<objectNum>0</objectNum>
|
||||
<luaScript>openFirstDoor</luaScript>
|
||||
<luaScript>openFirstDoor.lua</luaScript>
|
||||
<toChangeIdGreen>1</toChangeIdGreen>
|
||||
<toChangeIdBlue>133</toChangeIdBlue>
|
||||
<toChangeObjNum>0</toChangeObjNum>
|
||||
@ -1347,7 +1347,7 @@
|
||||
<distance>0.2</distance>
|
||||
<isBiggerThan>false</isBiggerThan>
|
||||
<objectNum>0</objectNum>
|
||||
<luaScript>openFirstDoorUndo</luaScript>
|
||||
<luaScript>openFirstDoorUndo.lua</luaScript>
|
||||
<toChangeIdGreen>1</toChangeIdGreen>
|
||||
<toChangeIdBlue>133</toChangeIdBlue>
|
||||
<toChangeObjNum>0</toChangeObjNum>
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user