- move static AM color initialization into the AM_StaticInit function.

- move D_LoadWadSettings to keysections.cpp.
- made some more data reloadable.
- data structures filled by P_SetupLevel should be cleared before loading the level. They can remain non-empty in case of an error. There's probably more to fix here...
- fixed: MidiDevices and MusicAliases were not cleared before reloading local SNDINFOs.
- fixed signed/unsigned warnings in AddSwitchPair for real (GCC really allows -1u? MSVC prints a warning for that.)


SVN r3036 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-14 00:50:02 +00:00
commit f0f17e531c
23 changed files with 134 additions and 107 deletions

View file

@ -322,7 +322,7 @@ void S_Init ()
void S_InitData ()
{
LastLocalSndInfo = LastLocalSndSeq = "";
S_ParseSndInfo ();
S_ParseSndInfo (false);
S_ParseSndSeq (-1);
S_ParseMusInfo();
}
@ -408,7 +408,7 @@ void S_Start ()
}
// Parse the global SNDINFO
S_ParseSndInfo();
S_ParseSndInfo(true);
if (*LocalSndInfo)
{