mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Blood's ambient sound table does not need to be written to the savegame because it can be statically reinitialized after loading.
This commit is contained in:
parent
c35a2e5f11
commit
935a880b63
1 changed files with 0 additions and 32 deletions
|
@ -152,36 +152,4 @@ void ambInit(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ASoundLoadSave : public LoadSave
|
|
||||||
{
|
|
||||||
virtual void Load(void);
|
|
||||||
virtual void Save(void);
|
|
||||||
};
|
|
||||||
|
|
||||||
void ASoundLoadSave::Load(void)
|
|
||||||
{
|
|
||||||
for (auto &amb : ambChannels)
|
|
||||||
{
|
|
||||||
Read(&amb.check, sizeof(amb.check));
|
|
||||||
amb.soundID = FSoundID(amb.check);
|
|
||||||
amb.distance = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void ASoundLoadSave::Save(void)
|
|
||||||
{
|
|
||||||
for (auto &amb : ambChannels)
|
|
||||||
{
|
|
||||||
Write(&amb.check, sizeof(amb.check));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static ASoundLoadSave *myLoadSave;
|
|
||||||
|
|
||||||
void ASoundLoadSaveConstruct(void)
|
|
||||||
{
|
|
||||||
myLoadSave = new ASoundLoadSave();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
END_BLD_NS
|
END_BLD_NS
|
||||||
|
|
Loading…
Reference in a new issue