mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
Lunatic: don't allow starting demo recording, since gamevar diffing is NYI.
git-svn-id: https://svn.eduke32.com/eduke32@4211 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a2d0008e32
commit
cc09a0ac92
1 changed files with 12 additions and 4 deletions
|
@ -135,6 +135,13 @@ extern int32_t krd_print(const char *filename);
|
||||||
|
|
||||||
void G_OpenDemoWrite(void)
|
void G_OpenDemoWrite(void)
|
||||||
{
|
{
|
||||||
|
#ifdef LUNATIC
|
||||||
|
// TODO: Currently, we can't diff gamevars in Lunatic...
|
||||||
|
Bstrcpy(ScriptQuotes[QUOTE_RESERVED4], "DEMOS UNSUPPORTED IN LUNATIC BUILD");
|
||||||
|
P_DoQuote(QUOTE_RESERVED4, g_player[myconnectindex].ps);
|
||||||
|
ud.recstat = ud.m_recstat = 0;
|
||||||
|
return;
|
||||||
|
#else
|
||||||
char demofn[BMAX_PATH];
|
char demofn[BMAX_PATH];
|
||||||
int32_t i, demonum=1;
|
int32_t i, demonum=1;
|
||||||
|
|
||||||
|
@ -151,7 +158,7 @@ void G_OpenDemoWrite(void)
|
||||||
ud.recstat = ud.m_recstat = 0;
|
ud.recstat = ud.m_recstat = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#if !defined LUNATIC
|
# if !defined LUNATIC
|
||||||
if (demorec_diffs_cvar && !demorec_force_cvar)
|
if (demorec_diffs_cvar && !demorec_force_cvar)
|
||||||
for (i=1; i<g_scriptSize-2; i++)
|
for (i=1; i<g_scriptSize-2; i++)
|
||||||
{
|
{
|
||||||
|
@ -170,7 +177,7 @@ void G_OpenDemoWrite(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
# endif
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (demonum == MAXDEMOS)
|
if (demonum == MAXDEMOS)
|
||||||
|
@ -219,10 +226,11 @@ error_wopen_demo:
|
||||||
ud.reccnt = 0;
|
ud.reccnt = 0;
|
||||||
ud.recstat = ud.m_recstat = 1; //
|
ud.recstat = ud.m_recstat = 1; //
|
||||||
|
|
||||||
#if KRANDDEBUG
|
# if KRANDDEBUG
|
||||||
krd_enable(1);
|
krd_enable(1);
|
||||||
#endif
|
# endif
|
||||||
g_demo_cnt = 1;
|
g_demo_cnt = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// demo_profile: < 0: prepare
|
// demo_profile: < 0: prepare
|
||||||
|
|
Loading…
Reference in a new issue