Skip to content

Commit

Permalink
- fixed SNDINFO parser to actually read new sound definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 18, 2023
1 parent f6ff02c commit acfca3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/core/music/s_advsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ static void S_AddSNDINFO (int lump)
continue;
}

if (sc.String[0] == '$')
int cmd;
if (sc.String[0] == '$') cmd = sc.MatchString(SICommandStrings);
else cmd = -1;
{ // Got a command
switch (sc.MatchString (SICommandStrings))
switch (cmd)
{
case SI_MusicVolume: {
sc.MustGetString();
Expand Down

0 comments on commit acfca3f

Please sign in to comment.