mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
S_UpdateSoundTest: Corrections
- Fix inverted skipnull condition for forward sequence traversal - Remove comment stating we used a naive implementation. The author of this commit used a triple pointer in the last one, this is anything but naive
This commit is contained in:
parent
90d5cb3752
commit
4f4976024c
1 changed files with 1 additions and 3 deletions
|
|
@ -1479,8 +1479,6 @@ void S_UpdateSoundTestDef(boolean reverse, boolean skipnull)
|
|||
{
|
||||
musicdef_t *newdef;
|
||||
|
||||
// Naive implementation for now.
|
||||
|
||||
newdef = NULL;
|
||||
|
||||
if (reverse == false)
|
||||
|
|
@ -1490,7 +1488,7 @@ void S_UpdateSoundTestDef(boolean reverse, boolean skipnull)
|
|||
: soundtest.sequence.next;
|
||||
while (newdef != NULL && S_SoundTestDefLocked(newdef))
|
||||
newdef = newdef->sequence.next;
|
||||
if (newdef == NULL && skipnull == false)
|
||||
if (newdef == NULL && skipnull == true)
|
||||
{
|
||||
newdef = soundtest.sequence.next;
|
||||
while (newdef != NULL && S_SoundTestDefLocked(newdef))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue