- 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:
Christoph Oelckers 2020-07-28 20:43:33 +02:00
parent a2ff8b3354
commit d531f4b029
2 changed files with 4 additions and 1 deletions

View File

@ -281,10 +281,12 @@ void hud_input(int snum)
if (GetGameVarID(g_iReturnVarID, -1, snum) == 0)
{
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))
p->interface_toggle_flag = 0;

View File

@ -166,6 +166,7 @@ struct player_struct
unsigned char toggle_key_flag, knuckle_incs; // ,select_dir;
unsigned char walking_snd_toggle, palookup, hard_landing;
unsigned char return_to_center;
bool quick_kick_msg;
int max_secret_rooms, secret_rooms, max_actors_killed, actors_killed;