mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-19 18:50:52 +00:00
- fixed: Doom2's cast call's Responder handled all events, not just KeyDown.
SVN r2909 (finale)
This commit is contained in:
parent
cbbd0fd0b7
commit
db51039607
2 changed files with 8 additions and 1 deletions
|
@ -427,6 +427,8 @@ void DIntermissionScreenCast::Init(FIntermissionAction *desc, bool first)
|
|||
|
||||
int DIntermissionScreenCast::Responder (event_t *ev)
|
||||
{
|
||||
if (ev->type != EV_KeyDown) return 0;
|
||||
|
||||
if (castdeath)
|
||||
return 1; // already in dying frames
|
||||
|
||||
|
@ -705,7 +707,7 @@ bool DIntermissionController::Responder (event_t *ev)
|
|||
{
|
||||
if (mScreen != NULL)
|
||||
{
|
||||
if (!mScreen->mPaletteChanged)
|
||||
if (!mScreen->mPaletteChanged && ev->type == EV_KeyDown)
|
||||
{
|
||||
const char *cmd = Bindings.GetBind (ev->data1);
|
||||
|
||||
|
|
|
@ -475,6 +475,11 @@ void M_SetMenu(FName menu, int param)
|
|||
|
||||
bool M_Responder (event_t *ev)
|
||||
{
|
||||
if (ev->type == EV_KeyDown && menuactive != MENU_Off)
|
||||
{
|
||||
__asm nop
|
||||
}
|
||||
|
||||
int ch = 0;
|
||||
bool keyup = false;
|
||||
int mkey = NUM_MKEYS;
|
||||
|
|
Loading…
Reference in a new issue