From 9379e873b37d1f0d312c870dc3ba7e8268589dd2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 21 Jan 2023 09:34:25 +0100 Subject: [PATCH] - error out when encountering an unknown $ token in SNSINFO. No need to preserve this insanity from old ZDoom times. --- source/core/music/s_advsound.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/music/s_advsound.cpp b/source/core/music/s_advsound.cpp index bbe0bf70d..7e4ffb4b6 100644 --- a/source/core/music/s_advsound.cpp +++ b/source/core/music/s_advsound.cpp @@ -425,6 +425,10 @@ static void S_AddSNDINFO (int lump) default: { // Got a logical sound mapping + if (sc.String[0] == '$') + { + sc.ScriptError("%s: Unknown keyword"); + } FString name (sc.String); if (wantassigns == -1) {