From 10ccb3fe63af983670966a52a267571d041aee1c Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 4 May 2022 22:26:17 +0100 Subject: Fix a woopsy and slightly tweak autorecord UX --- src/demorec.c | 8 +++++++- src/fov.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/demorec.c b/src/demorec.c index 7875e30..2108436 100644 --- a/src/demorec.c +++ b/src/demorec.c @@ -120,7 +120,13 @@ static void hook_record_cb(const struct con_cmdargs *args) { } } orig_record_cb(args); - if (!was && *recording) *demonum = 0; // see SetSignonState comment above + if (!was && *recording) { + *demonum = 0; // see SetSignonState comment above + // For UX, make it more obvious we're recording, in particular when not + // already in a map as the "recording to x.dem" won't come up yet. + // mike: I think this is questionably necessary but I'm outvoted :) + con_msg("Demo recording started\n"); + } } static void hook_stop_cb(const struct con_cmdargs *args) { diff --git a/src/fov.c b/src/fov.c index f60f067..46b90d2 100644 --- a/src/fov.c +++ b/src/fov.c @@ -62,7 +62,7 @@ static bool find_SetDefaultFOV(struct con_cmd *fov) { } p += len; } - return true; + return false; } // replacement cvar needs to actively set player fov if in a map -- cgit v1.2.3