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.
This commit is contained in:
Bill Currie 2022-04-09 01:57:14 +09:00
parent e97b96b536
commit 063c0797d6
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ R_RenderFisheye (framebuffer_t *cube)
{ {
int width = r_refdef.vrect.width; int width = r_refdef.vrect.width;
int height = r_refdef.vrect.height; int height = r_refdef.vrect.height;
int fov = scr_ffov->int_val; float fov = scr_ffov->value;
static int pwidth = -1; static int pwidth = -1;
static int pheight = -1; static int pheight = -1;
static int pfov = -1; static int pfov = -1;

View file

@ -940,7 +940,7 @@ SV_Say (qboolean team)
} }
// non-team messages should be seen allways, even if not tracking any // non-team messages should be seen allways, even if not tracking any
// player // player
if (!team && ((host_client->spectator && sv_spectalk->value) if (!team && ((host_client->spectator && sv_spectalk->int_val)
|| !host_client->spectator)) { || !host_client->spectator)) {
dbuf = SVR_WriteBegin (dem_all, 0, strlen (text->str) + 3); dbuf = SVR_WriteBegin (dem_all, 0, strlen (text->str) + 3);
} else { } else {