cl_demo.c (CL_PlayDemo_f): set key_dest to key_game only when the

demo file is successfully opened.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@697 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-07-18 21:20:07 +00:00
parent c00571286e
commit bf35f44bf1

View file

@ -297,9 +297,6 @@ void CL_PlayDemo_f (void)
return;
}
// get rid of the menu and/or console
key_dest = key_game;
// disconnect from server
CL_Disconnect ();
@ -351,6 +348,9 @@ void CL_PlayDemo_f (void)
cls.demoplayback = true;
cls.state = ca_connected;
// get rid of the menu and/or console
key_dest = key_game;
// Get a new message on playback start.
// Moved from CL_TimeDemo_f to here, Pa3PyX.
cls.td_lastframe = -1;