mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 17:22:17 +00:00
Merge branch 'stupid-input-events' into 'master'
Fix the last 128 input events repeating when restarting Time Attack with the Y button See merge request KartKrew/Kart!2044
This commit is contained in:
commit
6800ba3cf4
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