rest smol fixes

This commit is contained in:
Alug committed 2024-09-16 12:42:39 +02:00
1 parent 2a3a33226e
commit ee2d934525
2 files changed
+8 -3

No files matched your search

+7 -2
View File
@@ -6579,7 +6579,7 @@ void G_BeginRecording(void)
// player lua vars, always saved even if empty... Unless it's record attack.
if (demoflags & DF_LUAVARS)
LUA_Archive(&demobuf.p, false);
LUA_Archive(&demobuf, false);
memset(&oldcmd,0,sizeof(oldcmd));
memset(&oldghost,0,sizeof(oldghost));
@@ -7683,7 +7683,7 @@ void G_DoPlayDemo(char *defdemoname)
LUA_ClearState();
// No modeattacking check, DF_LUAVARS won't be present here.
LUA_UnArchive(&demobuf.p, false);
LUA_UnArchive(&demobuf, false);
}
splitscreen = 0;
@@ -8292,6 +8292,11 @@ void G_StopDemo(void)
{
Z_Free(demobuf.buffer);
demobuf.buffer = NULL;
if (demo.playback)
{
CV_SetValue(&cv_director, directorstate);
directorstate = 0;
}
demo.playback = false;
if (demo.title)
modeattacking = false;
+1 -1
View File
@@ -3549,7 +3549,7 @@ boolean P_LoadNetGame(savebuffer_t *save, boolean reloading)
P_FinishMobjs();
}
LUA_UnArchive(save);
LUA_UnArchive(save, true);
// This is stupid and hacky, but maybe it'll work!
P_SetRandSeed(P_GetInitSeed());