mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Fix entering the game from within a demo, but don't enable it.
git-svn-id: https://svn.eduke32.com/eduke32@3002 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
312609d9ab
commit
a1aac0480b
1 changed files with 4 additions and 3 deletions
|
@ -7690,14 +7690,15 @@ void G_HandleLocalKeys(void)
|
|||
}
|
||||
|
||||
#if 0
|
||||
// just what is wrong with that?
|
||||
// Enter a game from within a demo.
|
||||
if (KB_KeyPressed(sc_Return) && ud.multimode==1)
|
||||
{
|
||||
KB_ClearKeyDown(sc_Return);
|
||||
g_demo_cnt = g_demo_goalCnt = ud.reccnt = ud.pause_on = ud.recstat = ud.m_recstat = 0;
|
||||
kclose(g_demo_recFilePtr);
|
||||
// XXX: probably redundant; this stuff needs an API anyway:
|
||||
kclose(g_demo_recFilePtr); g_demo_recFilePtr = -1;
|
||||
g_player[myconnectindex].ps->gm = MODE_GAME;
|
||||
// ready2send=0;
|
||||
ready2send=1; // TODO: research this weird variable
|
||||
screenpeek=myconnectindex;
|
||||
// g_demo_paused=0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue