summaryrefslogtreecommitdiff
path: root/src/heretic/d_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic/d_net.c')
-rw-r--r--src/heretic/d_net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index 8b8aba20..fd728de4 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -483,10 +483,9 @@ void CheckAbort(void)
I_StartTic();
I_StartTic();
- for (; eventtail != eventhead;
- eventtail = (eventtail + 1) & (MAXEVENTS - 1))
+
+ while ((ev = D_PopEvent()) != NULL)
{
- ev = &events[eventtail];
if (ev->type == ev_keydown && ev->data1 == KEY_ESCAPE)
I_Error("Network game synchronization aborted.");
}