From ab226c1e39760009696b5d51b7abbb959cc4ab8e Mon Sep 17 00:00:00 2001 From: fickleheart Date: Sun, 27 Jan 2019 15:45:08 -0600 Subject: [PATCH] Move where multiplayer replays are started This particularly allows a server to record the first map after startup as a replay. Players joining mid-map can no longer record replays tho --- src/d_netcmd.c | 5 ----- src/p_setup.c | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index b9384eec..41f88ab9 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -2337,11 +2337,6 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum) return; } - //@TODO NET REPLAYS NEED BETTER FILE NAMING STUFF. ALSO OPTIONS. FUCK. - if (multiplayer) { - G_RecordDemo("net_replay_test"); - } - if (chmappending) chmappending--; diff --git a/src/p_setup.c b/src/p_setup.c index 49b22184..764ad211 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3156,6 +3156,11 @@ boolean P_SetupLevel(boolean skipprecip) ? cv_basenumlaps.value : mapheaderinfo[gamemap - 1]->numlaps); + //@TODO NET REPLAYS NEED BETTER FILE NAMING STUFF. ALSO OPTIONS. FUCK. + if (!demoplayback && multiplayer) { + G_RecordDemo("net_replay_test"); + } + // =========== // landing point for netgames. netgameskip: @@ -3435,7 +3440,7 @@ boolean P_AddWadFile(const char *wadfilename) // R_AddSkins(wadnum); // faB: wadfile index in wadfiles[] - // + // // edit music defs // S_LoadMusicDefs(wadnum);