renamed function 'WaitEventFiltered' to 'WaitValidEvent'
[rocksndiamonds.git] / src / tools.c
index 209c4e23681915bd412b2d1f3a209538a2a4e25c..43df704a17ea08c8301600f8276b3b75b79263c2 100644 (file)
@@ -3777,12 +3777,10 @@ void WaitForEventToContinue()
 
   while (still_wait)
   {
-    if (PendingEvent())
-    {
-      Event event;
-
-      NextEvent(&event);
+    Event event;
 
+    if (NextValidEvent(&event))
+    {
       switch (event.type)
       {
        case EVENT_BUTTONPRESS: