From 46c111be1dd2ba5ef6be0d4802bf14eabf7e98ac Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Thu, 22 Oct 2020 19:05:45 +0200 Subject: [PATCH] Fix cvar assignment typo. --- language.version | 2 +- zscript/swwm_inventory.zsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/language.version b/language.version index 2c35a03fe..f16d7663f 100644 --- a/language.version +++ b/language.version @@ -1,2 +1,2 @@ [default] -SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r567 \cu(Thu 22 Oct 17:49:22 CEST 2020)"; +SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r568 \cu(Thu 22 Oct 19:05:45 CEST 2020)"; diff --git a/zscript/swwm_inventory.zsc b/zscript/swwm_inventory.zsc index 40bebf3a0..583ac1f03 100644 --- a/zscript/swwm_inventory.zsc +++ b/zscript/swwm_inventory.zsc @@ -1094,7 +1094,7 @@ Class SWWMWeapon : Weapon abstract if ( !phair || !phair.GetBool() ) return; if ( !ch_on ) ch_on = CVar.GetCVar('crosshairon',players[consoleplayer]); if ( !ch_on.GetBool() ) return; - if ( !ch_force ) ch_on = CVar.GetCVar('crosshairforce',players[consoleplayer]); + if ( !ch_force ) ch_force = CVar.GetCVar('crosshairforce',players[consoleplayer]); if ( ch_force.GetBool() ) return; let sb = SWWMStatusBar(StatusBar); if ( !sb ) return;