Fix player sizing working in reverse
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 10:44:14 +0000 (13:44 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 10:44:14 +0000 (13:44 +0300)
data/qcsrc/server/cl_client.qc

index 5161d3f6987ce66e7b378dfba6e26b21a33fd631..c26a5530cbeb73f436dee938ef2fc799e28accef 100644 (file)
@@ -2258,7 +2258,7 @@ void ApplyHealthSize()
        }\r
        else\r
        {\r
-               self.scale = cvar("g_healthsize") / bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max"));\r
+               self.scale = bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")) / cvar("g_healthsize");\r
 \r
                // The following code sets the bounding box to match the player's size.\r
                // It is currently disabled because of issues with engine movement prediction (cl_movement).\r