Merge 2d88189b4c
into 9fb917c357
This commit is contained in:
commit
96f92bdb59
|
@ -3233,6 +3233,7 @@ static int _combat_turn(Object* obj, bool a2)
|
||||||
} else {
|
} else {
|
||||||
if (obj == gDude) {
|
if (obj == gDude) {
|
||||||
keyboardReset();
|
keyboardReset();
|
||||||
|
inputEventQueueReset();
|
||||||
interfaceRenderArmorClass(true);
|
interfaceRenderArmorClass(true);
|
||||||
_combat_free_move = 2 * perkGetRank(gDude, PERK_BONUS_MOVE);
|
_combat_free_move = 2 * perkGetRank(gDude, PERK_BONUS_MOVE);
|
||||||
interfaceRenderActionPoints(gDude->data.critter.combat.ap, _combat_free_move);
|
interfaceRenderActionPoints(gDude->data.critter.combat.ap, _combat_free_move);
|
||||||
|
|
|
@ -300,6 +300,8 @@ void inputEventQueueReset()
|
||||||
{
|
{
|
||||||
gInputEventQueueReadIndex = -1;
|
gInputEventQueueReadIndex = -1;
|
||||||
gInputEventQueueWriteIndex = 0;
|
gInputEventQueueWriteIndex = 0;
|
||||||
|
SDL_Event e;
|
||||||
|
while (SDL_PollEvent(&e)) {} // Clear all input events
|
||||||
}
|
}
|
||||||
|
|
||||||
// 0x4C8D1C
|
// 0x4C8D1C
|
||||||
|
|
Loading…
Reference in New Issue