mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 12:04:38 -04:00
disable toggles and menu shortcuts when typing on chat (#770)
Fixes #767, thanks @MrAlaux
This commit is contained in:
parent
a127a4a455
commit
d24962241e
@ -5282,7 +5282,7 @@ boolean M_Responder (event_t* ev)
|
||||
|
||||
// If there is no active menu displayed...
|
||||
|
||||
if (!menuactive) // phares
|
||||
if (!menuactive && !chat_on) // phares
|
||||
{ // |
|
||||
if (M_InputActivated(input_autorun)) // Autorun // V
|
||||
{
|
||||
@ -5404,7 +5404,7 @@ boolean M_Responder (event_t* ev)
|
||||
|
||||
if (M_InputActivated(input_zoomout)) // zoom out
|
||||
{
|
||||
if (automapactive || chat_on)
|
||||
if (automapactive)
|
||||
return false;
|
||||
M_SizeDisplay(0);
|
||||
S_StartSound(NULL,sfx_stnmov);
|
||||
@ -5413,7 +5413,7 @@ boolean M_Responder (event_t* ev)
|
||||
|
||||
if (M_InputActivated(input_zoomin)) // zoom in
|
||||
{ // jff 2/23/98
|
||||
if (automapactive || chat_on) // allow
|
||||
if (automapactive) // allow
|
||||
return false; // key_hud==key_zoomin
|
||||
M_SizeDisplay(1); // ^
|
||||
S_StartSound(NULL,sfx_stnmov); // |
|
||||
@ -5422,7 +5422,7 @@ boolean M_Responder (event_t* ev)
|
||||
|
||||
if (M_InputActivated(input_hud)) // heads-up mode
|
||||
{
|
||||
if ((automapactive && !automapoverlay) || chat_on) // jff 2/22/98
|
||||
if (automapactive && !automapoverlay) // jff 2/22/98
|
||||
return false; // HUD mode control
|
||||
if (screenSize<8) // function on default F5
|
||||
while (screenSize<8 || !hud_displayed) // make hud visible
|
||||
|
Loading…
x
Reference in New Issue
Block a user