Skip to content

Commit

Permalink
- error out when encountering an unknown $ token in SNSINFO.
Browse files Browse the repository at this point in the history
No need to preserve this insanity from old ZDoom times.
  • Loading branch information
coelckers committed Jan 21, 2023
1 parent 8e5e52f commit 9379e87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/core/music/s_advsound.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 9379e87

Please sign in to comment.