]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a bug I introduced in the last commits
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 2 Aug 2011 11:30:41 +0000 (14:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 2 Aug 2011 11:30:41 +0000 (14:30 +0300)
data/qcsrc/server/cl_weaponsystem.qc

index 5672079495289314298b2f4c21dc7e18ca8b3231..06ee01e125e8249f7e02b032936bc372c5eb6a04 100644 (file)
@@ -752,10 +752,9 @@ void CL_Weaponentity_Think()
 \r
        }\r
 \r
-       // create or update the lasertarget entity\r
-\r
        // if we are a micro or macro, size the weapon model accordingly\r
        if(cvar("g_healthsize") && cvar("g_healthsize_weapon_scalefactor"))\r
+       if(self.model != "")\r
        {\r
                self.weaponentity.scale = (1 + cvar("g_healthsize_weapon_scalefactor")) - cvar("g_healthsize_weapon_scalefactor") * self.owner.scale;\r
                if(self.weaponentity.scale < 0.1)\r