From 6bce14b86f92837a7b7c3cc562dbfbe3e802fa49 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 29 Apr 2022 00:58:07 +0200 Subject: [PATCH] =?UTF-8?q?-=20added=20=E2=80=9Arepeat=E2=80=98=20option?= =?UTF-8?q?=20to=20SetLineActivation=20ACS=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/playsim/p_acs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/playsim/p_acs.cpp b/src/playsim/p_acs.cpp index 64e2aa112e..684f5312e5 100644 --- a/src/playsim/p_acs.cpp +++ b/src/playsim/p_acs.cpp @@ -6204,9 +6204,12 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound) { int line; auto itr = Level->GetLineIdIterator(args[0]); + int repeat = argCount > 2? args[2] : -1; while ((line = itr.Next()) >= 0) { Level->lines[line].activation = args[1]; + if (repeat > 0) Level->lines[line].flags |= ML_REPEAT_SPECIAL; + else if (repeat == 0) Level->lines[line].flags &= ~ML_REPEAT_SPECIAL; } } break;