- error out when encountering an unknown $ token in SNSINFO.

No need to preserve this insanity from old ZDoom times.
This commit is contained in:
Christoph Oelckers 2023-01-21 09:34:25 +01:00
parent 8e5e52f80e
commit 9379e873b3

View file

@ -425,6 +425,10 @@ static void S_AddSNDINFO (int lump)
default: default:
{ // Got a logical sound mapping { // Got a logical sound mapping
if (sc.String[0] == '$')
{
sc.ScriptError("%s: Unknown keyword");
}
FString name (sc.String); FString name (sc.String);
if (wantassigns == -1) if (wantassigns == -1)
{ {