fix paletterender toggle calling setpalette during startup
This commit is contained in:
1 parent
b27b4bfd7a
commit
ba0b414062
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -14,6 +14,7 @@
|
||||
/// Does palette indicators as well (red pain/berserk, bright pickup)
|
||||
|
||||
#include "doomdef.h"
|
||||
#include "d_main.h"
|
||||
#include "g_game.h"
|
||||
#include "g_input.h"
|
||||
#include "k_director.h"
|
||||
@@ -172,7 +173,8 @@ INT32 st_palette = 0;
|
||||
void ST_ResetPaletteStuff(void)
|
||||
{
|
||||
st_palette = 0;
|
||||
V_SetPalette(0);
|
||||
if (loaded_config)
|
||||
V_SetPalette(0);
|
||||
}
|
||||
|
||||
static void ST_doPaletteStuff(void)
|
||||
|
||||
@@ -676,6 +676,7 @@ static void CV_palette_OnChange(void)
|
||||
{
|
||||
if (!loaded_config)
|
||||
return;
|
||||
|
||||
// reload palette
|
||||
// recalculate Color Cube
|
||||
V_ReloadPalette();
|
||||
|
||||
Reference in new issue
Block a user