UDBScript: fixed a problem in the voodoo doll example script when the "looping" option was set to true

This commit is contained in:
biwa 2022-04-09 17:12:13 +02:00
parent 5cb40a23c2
commit f9fe1ea900

View file

@ -147,7 +147,7 @@ if(UDB.ScriptOptions.inactive)
if(UDB.ScriptOptions.looping)
{
// Create the teleport destination line
p.setAngle(90 * ScriptOptions.direction).moveTo(basepos)
p.setAngle(90 * UDB.ScriptOptions.direction).moveTo(basepos)
.moveForward(32).turnRight().moveForward(8).drawVertex()
.moveForward(closetwidth - 16).drawVertex();