From dfb77a093a63df3ded868b2c67cb4820be1584d9 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 3 May 2023 17:23:10 +0200 Subject: [PATCH] Add NoArrow parameter for custom Lua/SOC objects --- Source/Core/SRB2/LuaObjectParser.cs | 5 ++++- Source/Core/SRB2/SOCObjectParser.cs | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/Core/SRB2/LuaObjectParser.cs b/Source/Core/SRB2/LuaObjectParser.cs index 31832c7..752703f 100644 --- a/Source/Core/SRB2/LuaObjectParser.cs +++ b/Source/Core/SRB2/LuaObjectParser.cs @@ -208,7 +208,10 @@ namespace CodeImp.DoomBuilder.SRB2 case "$Arrow": arrow = true; break; - case "$TagThing": + case "$NoArrow": + arrow = false; + break; + case "$TagThing": tagthing = true; break; case "doomednum": diff --git a/Source/Core/SRB2/SOCObjectParser.cs b/Source/Core/SRB2/SOCObjectParser.cs index a8aa8ee..3d7b136 100644 --- a/Source/Core/SRB2/SOCObjectParser.cs +++ b/Source/Core/SRB2/SOCObjectParser.cs @@ -240,8 +240,13 @@ namespace CodeImp.DoomBuilder.SRB2 { arrow = true; continue; - } - if (line.StartsWith("#$TagThing")) + } + if (line.StartsWith("#$NoArrow")) + { + arrow = false; + continue; + } + if (line.StartsWith("#$TagThing")) { tagthing = true; continue;