#include <config.h> --> #include "config.h";

ClearAllStates() fix.
This commit is contained in:
Anton E. Gavrilov 2000-05-19 08:33:31 +00:00
parent 04e41775cd
commit 34365188bc

View file

@ -28,7 +28,7 @@
// vid_win.c -- Win32 video driver // vid_win.c -- Win32 video driver
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include "config.h"
#endif #endif
#include "quakedef.h" #include "quakedef.h"
#include "winquake.h" #include "winquake.h"
@ -282,7 +282,8 @@ void ClearAllStates (void)
// send an up event for each key, to make sure the server clears them all // send an up event for each key, to make sure the server clears them all
for (i=0 ; i<256 ; i++) for (i=0 ; i<256 ; i++)
{ {
Key_Event (i, false); if (keydown[i])
Key_Event (i, false);
} }
Key_ClearStates (); Key_ClearStates ();