From 063c0797d60100c7171f942202fd178fe1221e03 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 9 Apr 2022 01:57:14 +0900 Subject: [PATCH] Fix some inconsistent cvar uses Surprisingly, only two, but they were caught by the different value fields being used, thus the cvar was checked in multiple places. I imagine that's not really all that common, so there may be some inconsistencies between default value and use. --- libs/video/renderer/sw/sw_fisheye.c | 2 +- qw/source/sv_user.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/sw/sw_fisheye.c b/libs/video/renderer/sw/sw_fisheye.c index c1c782e47..83d6c2a15 100644 --- a/libs/video/renderer/sw/sw_fisheye.c +++ b/libs/video/renderer/sw/sw_fisheye.c @@ -128,7 +128,7 @@ R_RenderFisheye (framebuffer_t *cube) { int width = r_refdef.vrect.width; int height = r_refdef.vrect.height; - int fov = scr_ffov->int_val; + float fov = scr_ffov->value; static int pwidth = -1; static int pheight = -1; static int pfov = -1; diff --git a/qw/source/sv_user.c b/qw/source/sv_user.c index a9eb02fe4..31dc6c142 100644 --- a/qw/source/sv_user.c +++ b/qw/source/sv_user.c @@ -940,7 +940,7 @@ SV_Say (qboolean team) } // non-team messages should be seen allways, even if not tracking any // player - if (!team && ((host_client->spectator && sv_spectalk->value) + if (!team && ((host_client->spectator && sv_spectalk->int_val) || !host_client->spectator)) { dbuf = SVR_WriteBegin (dem_all, 0, strlen (text->str) + 3); } else {