- did a bit of header cleanup to reduce the dependency on dobject.h.

This commit is contained in:
Christoph Oelckers 2017-03-09 23:30:42 +01:00
commit a4710bcdb0
48 changed files with 226 additions and 274 deletions

View file

@ -491,14 +491,14 @@ void S_PrecacheLevel ()
actor->MarkPrecacheSounds();
}
}
for (auto i : gameinfo.PrecachedSounds)
for (auto snd : gameinfo.PrecachedSounds)
{
level.info->PrecacheSounds[i].MarkUsed();
FSoundID(snd).MarkUsed();
}
// Precache all extra sounds requested by this map.
for (i = 0; i < level.info->PrecacheSounds.Size(); ++i)
for (auto snd : level.info->PrecacheSounds)
{
level.info->PrecacheSounds[i].MarkUsed();
FSoundID(snd).MarkUsed();
}
// Don't unload sounds that are playing right now.
for (FSoundChan *chan = Channels; chan != NULL; chan = chan->NextChan)