From 2cb62c8663061601f831c444ce7b8f8c204b4590 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 19 Mar 2024 01:12:59 -0700 Subject: [PATCH] devmode replay: show demo format version --- src/g_demo.cpp | 2 ++ src/st_stuff.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_demo.cpp b/src/g_demo.cpp index 2831b779a..c01474580 100644 --- a/src/g_demo.cpp +++ b/src/g_demo.cpp @@ -2185,6 +2185,8 @@ void G_BeginRecording(void) WRITEUINT8(demobuf.p,SUBVERSION); WRITEUINT16(demobuf.p,DEMOVERSION); + demo.version = DEMOVERSION; + // Full replay title demobuf.p += 64; { diff --git a/src/st_stuff.c b/src/st_stuff.c index acdd7d31e..ad6032bef 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -471,7 +471,7 @@ static void ST_drawDemoDebug(INT32 *height) avg * TICRATE / 1024.0, (size - needle) / (avg * TICRATE * 60.0) )); - ST_pushDebugString(height, va("Demo (%s)", demo.recording ? "recording" : "playback")); + ST_pushDebugString(height, va("Demo %04x (%s)", demo.version, demo.recording ? "recording" : "playback")); } void ST_drawDebugInfo(void)