- fixed compile

This commit is contained in:
Christoph Oelckers 2020-06-21 23:46:17 +02:00
parent d49c5f7e4c
commit eb6aac4c43
5 changed files with 5 additions and 4 deletions

View file

@ -57,6 +57,7 @@ bool Cheat_Responder (event_t *ev)
if (cheats.Size() == 0)
{
#if 0
auto gcheats = gi->GetCheats();
if (gcheats)
{
@ -66,6 +67,7 @@ bool Cheat_Responder (event_t *ev)
cheats.Push(cht);
}
}
#endif
}
if (nocheats)

View file

@ -424,7 +424,7 @@ static int32_t tint_blood_r = 0, tint_blood_g = 0, tint_blood_b = 0;
glblend_t glblend[MAXBLENDTABS];
void videoSetPalette(int dabrightness, int palid, ESetPalFlags flags)
void videoSetPalette(int palid, ESetPalFlags flags)
{
curbasepal = (GPalette.GetTranslation(Translation_BasePalettes, palid) == nullptr)? 0 : palid;
if ((flags & Pal_DontResetFade) == 0) palfadergb = 0;

View file

@ -5673,7 +5673,7 @@ int GameInterface::app_main()
if (g_networkMode != NET_DEDICATED_SERVER)
{
videoInit();
videoSetPalette(0, myplayer.palette, 0);
videoSetPalette(myplayer.palette, 0);
}
// check if the minifont will support lowercase letters (3136-3161)

View file

@ -91,7 +91,7 @@ void P_SetGamePalette(DukePlayer_t *player, uint32_t palid, ESetPalFlags set)
if (player != g_player[screenpeek].ps)
return;
videoSetPalette(0, palid, set);
videoSetPalette(palid, set);
}

View file

@ -127,7 +127,6 @@ END_DUKE_NS
#include "sector.h"
#include "sounds.h"
#include "soundsdyn.h"
#include "rrdh.h"
BEGIN_DUKE_NS