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:
helixhorned 2013-12-24 09:44:21 +00:00
parent a2d0008e32
commit cc09a0ac92

View file

@ -135,6 +135,13 @@ extern int32_t krd_print(const char *filename);
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];
int32_t i, demonum=1;
@ -223,6 +230,7 @@ error_wopen_demo:
krd_enable(1);
# endif
g_demo_cnt = 1;
#endif
}
// demo_profile: < 0: prepare