- commented stuff out to make it compile.

This commit is contained in:
Christoph Oelckers 2019-12-13 00:19:16 +01:00
parent 30304341a5
commit 4d28940d2f
2 changed files with 9 additions and 8 deletions

View file

@ -2660,7 +2660,7 @@ void Control()
void _Assert(const char *expr, const char *strFile, unsigned uLine) void _Assert(const char *expr, const char *strFile, unsigned uLine)
{ {
buildprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine); buildprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine);
debug_break(); //debug_break();
TerminateGame(); TerminateGame();
@ -3358,7 +3358,7 @@ SWBOOL DoQuickSave(short save_num)
SWBOOL DoQuickLoad() SWBOOL DoQuickLoad()
{ {
KB_ClearKeysDown(); //KB_ClearKeysDown();
PauseAction(); PauseAction();
@ -3480,13 +3480,13 @@ FunctionKeys(PLAYERp pp)
inputState.SetKeyStatus(sc_Escape); inputState.SetKeyStatus(sc_Escape);
if (QuickLoadNum < 0) if (QuickLoadNum < 0)
{ {
KEY_PRESSED(KEYSC_ESC) = 1; //KEY_PRESSED(KEYSC_ESC) = 1;
ControlPanelType = ct_savemenu; ControlPanelType = ct_savemenu;
} }
else else
{ {
KB_ClearKeysDown(); //KB_ClearKeysDown();
KB_FlushKeyboardQueue(); //KB_FlushKeyboardQueue();
DoQuickSave(QuickLoadNum); DoQuickSave(QuickLoadNum);
ResumeAction(); ResumeAction();
} }
@ -3502,7 +3502,7 @@ FunctionKeys(PLAYERp pp)
{ {
if (QuickLoadNum < 0) if (QuickLoadNum < 0)
{ {
KEY_PRESSED(KEYSC_ESC) = 1; //KEY_PRESSED(KEYSC_ESC) = 1;
ControlPanelType = ct_loadmenu; ControlPanelType = ct_loadmenu;
} }
else else
@ -4299,13 +4299,14 @@ void getinput(SW_PACKET *loc)
SET(loc->bits, prev_weapon + 1); SET(loc->bits, prev_weapon + 1);
} }
/*
if (buttonMap.ButtonDown(gamefunc_Alt_Weapon_Mode)) if (buttonMap.ButtonDown(gamefunc_Alt_Weapon_Mode))
{ {
buttonMap.ClearButton(gamefunc_Alt_Weapon_Mode); buttonMap.ClearButton(gamefunc_Alt_Weapon_Mode);
USERp u = User[pp->PlayerSprite]; USERp u = User[pp->PlayerSprite];
short const which_weapon = u->WeaponNum + 1; short const which_weapon = u->WeaponNum + 1;
SET(loc->bits, which_weapon); SET(loc->bits, which_weapon);
} }*/
inv_hotkey = 0; inv_hotkey = 0;
if (buttonMap.ButtonDown(gamefunc_Med_Kit)) if (buttonMap.ButtonDown(gamefunc_Med_Kit))

View file

@ -881,7 +881,7 @@ static int MNU_SelectButtonFunction(const char *buttonname, int *currentfunc)
else if (I_MenuDown()) else if (I_MenuDown())
{ {
I_MenuDownClear(); I_MenuDownClear();
*currentfunc = min(NUMGAMEFUNCTIONS, *currentfunc + 1); //*currentfunc = min(NUMGAMEFUNCTIONS, *currentfunc + 1);
} }