mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
- reduce message spam when holding down the quick_kick button.
If not kept in check this will flood the console with endless messages.
This commit is contained in:
parent
a2ff8b3354
commit
d531f4b029
2 changed files with 4 additions and 1 deletions
|
@ -281,10 +281,12 @@ void hud_input(int snum)
|
||||||
if (GetGameVarID(g_iReturnVarID, -1, snum) == 0)
|
if (GetGameVarID(g_iReturnVarID, -1, snum) == 0)
|
||||||
{
|
{
|
||||||
p->quick_kick = 14;
|
p->quick_kick = 14;
|
||||||
FTA(QUOTE_MIGHTY_FOOT, p);
|
if (!p->quick_kick_msg && snum == screenpeek) FTA(QUOTE_MIGHTY_FOOT, p);
|
||||||
|
p->quick_kick_msg = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!PlayerInput(snum, SKB_QUICK_KICK)) p->quick_kick_msg = false;
|
||||||
|
|
||||||
if (!PlayerInputBits(snum, SKB_INTERFACE_BITS))
|
if (!PlayerInputBits(snum, SKB_INTERFACE_BITS))
|
||||||
p->interface_toggle_flag = 0;
|
p->interface_toggle_flag = 0;
|
||||||
|
|
|
@ -166,6 +166,7 @@ struct player_struct
|
||||||
unsigned char toggle_key_flag, knuckle_incs; // ,select_dir;
|
unsigned char toggle_key_flag, knuckle_incs; // ,select_dir;
|
||||||
unsigned char walking_snd_toggle, palookup, hard_landing;
|
unsigned char walking_snd_toggle, palookup, hard_landing;
|
||||||
unsigned char return_to_center;
|
unsigned char return_to_center;
|
||||||
|
bool quick_kick_msg;
|
||||||
|
|
||||||
int max_secret_rooms, secret_rooms, max_actors_killed, actors_killed;
|
int max_secret_rooms, secret_rooms, max_actors_killed, actors_killed;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue