Isolate G_BeginRecording in P_SetupLevel to only dedicated servers

Everything else goes back to doing it in Got_Mapcmd
This commit is contained in:
Ashnal committed 2020-08-19 23:10:53 -04:00
1 parent 8e46eabf8c
commit 1e5f1418e1
3 files changed
+4 -7

No files matched your search

+2 -2
View File
@@ -2667,8 +2667,8 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
if (metalrecording)
G_BeginMetal();
//if (demo.recording) // Okay, level loaded, character spawned and skinned,
// G_BeginRecording(); // I AM NOW READY TO RECORD.
if (demo.recording) // Okay, level loaded, character spawned and skinned,
G_BeginRecording(); // I AM NOW READY TO RECORD.
demo.deferstart = true;
}
-4
View File
@@ -7966,7 +7966,6 @@ static void M_ChooseTimeAttack(INT32 choice)
I_mkdir(va("%s"PATHSEP"replay", srb2home), 0755);
I_mkdir(va("%s"PATHSEP"replay"PATHSEP"%s", srb2home, timeattackfolder), 0755);
if ((gpath = malloc(glen)) == NULL)
I_Error("Out of memory for replay filepath\n");
@@ -7976,10 +7975,7 @@ static void M_ChooseTimeAttack(INT32 choice)
if (!cv_autorecord.value)
remove(va("%s"PATHSEP"%s.lmp", srb2home, nameofdemo));
else
{
G_RecordDemo(nameofdemo);
G_BeginRecording();
}
G_DeferedInitNew(false, G_BuildMapName(cv_nextmap.value), (UINT8)(cv_chooseskin.value-1), 0, false);
}
+2 -1
View File
@@ -3243,7 +3243,8 @@ boolean P_SetupLevel(boolean skipprecip)
I_mkdir(va("%s"PATHSEP"replay", srb2home), 0755);
I_mkdir(va("%s"PATHSEP"replay"PATHSEP"online", srb2home), 0755);
G_RecordDemo(buf);
G_BeginRecording(); //this has to move here, since dedicated servers dont run got_mapcmd
if (dedicated)
G_BeginRecording(); //this has to move here, since dedicated servers dont run got_mapcmd
}
// ===========