From f38fc784ffab00c11b9818d18f55be34cc8aa130 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 21 Jun 2025 14:46:10 +0100 Subject: Abstract over con_var layout changes from OE to NE This doesn't allow us to support OE in and of itself but is part of the groundwork necessary to do so in the future. --- src/autojump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/autojump.c') diff --git a/src/autojump.c b/src/autojump.c index 2656796..eb0e34f 100644 --- a/src/autojump.c +++ b/src/autojump.c @@ -78,7 +78,7 @@ static bool unprot(struct CGameMovement *gm) { // reimplementing cheats check for dumb and bad reasons, see below static struct con_var *sv_cheats; static void cheatcb(struct con_var *this) { - if (this->ival) if_cold (!con_getvari(sv_cheats)) { + if (con_getvari(this)) if_cold (!con_getvari(sv_cheats)) { con_warn("Can't use cheat cvar sst_autojump, unless server has " "sv_cheats set to 1.\n"); con_setvari(this, 0); -- cgit v1.2.3-54-g00ecf