UDBScript examples: fixed a problem in the "Create Line Portal" script where not all arguments of the selected lines were reset. Fixes #1026

This commit is contained in:
biwa 2024-03-03 10:50:04 +01:00
parent f9dd98695b
commit f28a4b10a8

View file

@ -77,7 +77,7 @@ let newtag = UDB.Map.getNewTag();
// Set the action, arg, and tag of both lines // Set the action, arg, and tag of both lines
lines[0].action = lines[1].action = 301; // Line_QuickPortal 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; lines[0].tag = lines[1].tag = newtag;
// Draw the sectors behind the portal // Draw the sectors behind the portal