diff --git a/src/combat.cc b/src/combat.cc index 8548137..2cfe082 100644 --- a/src/combat.cc +++ b/src/combat.cc @@ -3223,6 +3223,7 @@ static int _combat_turn(Object* a1, bool a2) } else { if (a1 == gDude) { keyboardReset(); + inputEventQueueReset(); interfaceRenderArmorClass(true); _combat_free_move = 2 * perkGetRank(gDude, PERK_BONUS_MOVE); interfaceRenderActionPoints(gDude->data.critter.combat.ap, _combat_free_move); diff --git a/src/input.cc b/src/input.cc index ccfa5a6..837aa92 100644 --- a/src/input.cc +++ b/src/input.cc @@ -292,6 +292,8 @@ void inputEventQueueReset() { gInputEventQueueReadIndex = -1; gInputEventQueueWriteIndex = 0; + SDL_Event e; + while (SDL_PollEvent(&e)) {} // Clear all input events } // 0x4C8D1C