- moved player color sets and pain flashes into global variables.

There's simply never enough of them and they are used far too infrequently to justify the hassle of tagging along two TMaps per class.
For what they provide, single global lists that handle all player classes at once are fully sufficient.
This commit is contained in:
Christoph Oelckers 2017-02-08 19:10:11 +01:00
commit 68e9918ed5
10 changed files with 82 additions and 39 deletions

View file

@ -2707,6 +2707,8 @@ void D_DoomMain (void)
// delete all data that cannot be left until reinitialization
V_ClearFonts(); // must clear global font pointers
ColorSets.Clear();
PainFlashes.Clear();
R_DeinitTranslationTables(); // some tables are initialized from outside the translation code.
gameinfo.~gameinfo_t();
new (&gameinfo) gameinfo_t; // Reset gameinfo