Merge remote-tracking branch 'Tyron/somebodyclipthat' into Custom
This commit is contained in:
commit
7f452d623f
1 file changed
+24
@@ -147,6 +147,8 @@ static void Command_RunSOC(void);
|
||||
static void Command_Pause(void);
|
||||
static void Command_Respawn(void);
|
||||
|
||||
static void Command_ReplayMarker(void);
|
||||
|
||||
static void Command_Version_f(void);
|
||||
#ifdef UPDATE_ALERT
|
||||
static void Command_ModDetails_f(void);
|
||||
@@ -624,6 +626,8 @@ void D_RegisterServerCommands(void)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
COM_AddCommand("replaymarker", Command_ReplayMarker);
|
||||
|
||||
// for master server connection
|
||||
AddMServCommands();
|
||||
|
||||
@@ -2845,6 +2849,26 @@ static void Got_Pause(UINT8 **cp, INT32 playernum)
|
||||
}
|
||||
}
|
||||
|
||||
static void Command_ReplayMarker(void)
|
||||
{
|
||||
if (gamestate != GS_LEVEL)
|
||||
{
|
||||
CONS_Printf(M_GetText("You must be in a level to use this.\n"));
|
||||
return;
|
||||
}
|
||||
if (demo.savemode == DSM_WILLAUTOSAVE) {
|
||||
demo.savemode = DSM_NOTSAVING;
|
||||
CONS_Printf("Replay unmarked.\n");
|
||||
} else {
|
||||
int adjustedleveltime = leveltime - starttime;
|
||||
demo.savemode = DSM_WILLAUTOSAVE;
|
||||
if (adjustedleveltime < 0)
|
||||
adjustedleveltime = 0;
|
||||
snprintf(demo.titlename, 64, "%s [%i:%02d/%.5s]", G_BuildMapTitle(gamemap), G_TicsToMinutes(adjustedleveltime, false), G_TicsToSeconds(adjustedleveltime), modeattacking ? "Record Attack" : connectedservername);
|
||||
CONS_Printf("Replay will be saved!\n");
|
||||
}
|
||||
}
|
||||
|
||||
// Command for stuck characters in netgames, griefing, etc.
|
||||
static void Command_Respawn(void)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user