From: MirceaKitsune Date: Tue, 2 Aug 2011 11:30:41 +0000 (+0300) Subject: Fix a bug I introduced in the last commits X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f4d852c6e3f619bd94d73479dfe2290bb8d8a87;p=voretournament%2Fvoretournament.git Fix a bug I introduced in the last commits --- diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 56720794..06ee01e1 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -752,10 +752,9 @@ void CL_Weaponentity_Think() } - // create or update the lasertarget entity - // if we are a micro or macro, size the weapon model accordingly if(cvar("g_healthsize") && cvar("g_healthsize_weapon_scalefactor")) + if(self.model != "") { self.weaponentity.scale = (1 + cvar("g_healthsize_weapon_scalefactor")) - cvar("g_healthsize_weapon_scalefactor") * self.owner.scale; if(self.weaponentity.scale < 0.1)