From f28a4b10a8be1c615d8c7ff169015d7ca2226a5e Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Sun, 3 Mar 2024 10:50:04 +0100 Subject: [PATCH] UDBScript examples: fixed a problem in the "Create Line Portal" script where not all arguments of the selected lines were reset. Fixes #1026 --- Build/UDBScript/Scripts/Examples/Geometry/createlineportal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/UDBScript/Scripts/Examples/Geometry/createlineportal.js b/Build/UDBScript/Scripts/Examples/Geometry/createlineportal.js index 135d5383..c699bf8d 100644 --- a/Build/UDBScript/Scripts/Examples/Geometry/createlineportal.js +++ b/Build/UDBScript/Scripts/Examples/Geometry/createlineportal.js @@ -77,7 +77,7 @@ let newtag = UDB.Map.getNewTag(); // Set the action, arg, and tag of both lines lines[0].action = lines[1].action = 301; // Line_QuickPortal -lines[0].args[0] = lines[1].args[0] = 0; +for(let i=0; i <= 4; i++) lines[0].args[i] = lines[1].args[i] = 0; lines[0].tag = lines[1].tag = newtag; // Draw the sectors behind the portal