hedgewars/hwengine.pas
changeset 6327 1a69a0d52d32
parent 6268 d773867f93db
child 6329 9eb6c4a8d633
--- a/hedgewars/hwengine.pas	Fri Nov 11 15:28:58 2011 -0500
+++ b/hedgewars/hwengine.pas	Sat Nov 12 10:44:10 2011 -0500
@@ -156,7 +156,7 @@
     while isTerminated = false do
     begin
         SDL_PumpEvents();
-        while SDL_PeepEvents(@event, 1, SDL_GETEVENT, {$IFDEF SDL13}SDL_FIRSTEVENT, SDL_LASTEVENT{$ELSE}SDL_ALLEVENTS{$ENDIF}) > 0 do
+        while SDL_PeepEvents(@event, 1, SDL_GETEVENT, {$IFDEF SDL13}SDL_FIRSTEVENT, SDL_LASTEVENT{$ELSE}HW_EVENT_MASK{$ENDIF}) > 0 do
         begin
             case event.type_ of
 {$IFDEF SDL13}