From a653fb6e0cfab8b5bbe71ae7652e1a9af810b065 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 7 Feb 2007 13:04:46 +0000 Subject: Revert previous change: throwing away the key state seems to be the Doom 1.9 behavior. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 832 --- src/g_game.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/g_game.c b/src/g_game.c index 87aae640..3a4cba02 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -203,7 +203,6 @@ fixed_t angleturn[3] = {640, 1280, 320}; // + slow turn #define NUMKEYS 256 -static boolean gamekeydown_initialised = false; static boolean gamekeydown[NUMKEYS]; static int turnheld; // for accelerative turning @@ -645,14 +644,7 @@ void G_DoLoadLevel (void) // clear cmd building stuff - // Initialise gamekeydown when the first level is loaded - - if (!gamekeydown_initialised) - { - memset (gamekeydown, 0, sizeof(gamekeydown)); - gamekeydown_initialised = true; - } - + memset (gamekeydown, 0, sizeof(gamekeydown)); joyxmove = joyymove = 0; mousex = mousey = 0; sendpause = sendsave = paused = false; -- cgit v1.2.3