mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-15 19:22:21 +00:00
D_ProcessEvents: fix old input events repeating themselves when pressing Y button in Time Attack
This commit is contained in:
parent
266e36928b
commit
7305afa5ea
1 changed files with 12 additions and 2 deletions
|
|
@ -272,9 +272,19 @@ void D_ProcessEvents(boolean callresponders)
|
|||
boolean eaten;
|
||||
|
||||
G_ResetAllDeviceResponding();
|
||||
for (; eventtail != eventhead; eventtail = (eventtail+1) & (MAXEVENTS-1))
|
||||
|
||||
// Save these in local variables because eventtail !=
|
||||
// eventhead was evaluating true when they were equal,
|
||||
// but only when using the Y button to restart a Time
|
||||
// Attack??
|
||||
INT32 tail = eventtail;
|
||||
INT32 head = eventhead;
|
||||
|
||||
eventtail = eventhead;
|
||||
|
||||
for (; tail != head; tail = (tail+1) & (MAXEVENTS-1))
|
||||
{
|
||||
ev = &events[eventtail];
|
||||
ev = &events[tail];
|
||||
|
||||
HandleGamepadDeviceEvents(ev);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue