Fix the missing console prompt on demo stop.

CL_StopPlayback was incorrectly calling Key_SetKeyDest with key_game. As
CL_SetState calls Key_SetKeyDest with the appropriate parameter,
CL_StopPlayback calling Key_SetKeyDest is actually redundate, so just
change key_game_target back to IMT_0.
This commit is contained in:
Bill Currie 2012-06-16 16:05:24 +09:00
parent b0b07d09b9
commit ca1a5dfe8f
2 changed files with 2 additions and 4 deletions

View file

@ -125,11 +125,10 @@ CL_StopPlayback (void)
Qclose (cls.demofile);
cls.demofile = NULL;
key_game_target = IMT_0;
CL_SetState (ca_disconnected);
cls.demo_capture = 0;
cls.demoplayback = 0;
key_game_target = IMT_0;
Key_SetKeyDest (key_game);
if (cls.timedemo)
CL_FinishTimeDemo ();

View file

@ -144,14 +144,13 @@ CL_StopPlayback (void)
Qclose (cls.demofile);
cls.demofile = NULL;
key_game_target = IMT_0;
CL_SetState (ca_disconnected);
cls.demo_capture = 0;
cls.demoplayback = 0;
cls.demoplayback2 = 0;
demotime_cached = 0;
net_blocksend = 0;
key_game_target = IMT_0;
Key_SetKeyDest (key_game);
if (cls.timedemo)
CL_FinishTimeDemo ();