K_MenuButtonPressed, K_MenuButtonHeld: Return *actual* booleans, not numerical flag values

This commit is contained in:
toaster 2023-06-09 14:29:31 +01:00
parent 986ec8025d
commit aa4c3ab4a2

View file

@ -807,12 +807,12 @@ boolean M_MenuButtonPressed(UINT8 pid, UINT32 bt)
return false; return false;
} }
return (menucmd[pid].buttons & bt); return !!(menucmd[pid].buttons & bt);
} }
boolean M_MenuButtonHeld(UINT8 pid, UINT32 bt) boolean M_MenuButtonHeld(UINT8 pid, UINT32 bt)
{ {
return (menucmd[pid].buttons & bt); return !!(menucmd[pid].buttons & bt);
} }
// Returns true if we press the confirmation button // Returns true if we press the confirmation button