From: MirceaKitsune Date: Mon, 2 May 2011 10:44:14 +0000 (+0300) Subject: Fix player sizing working in reverse X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=08643f840d0ed0cca03e5810c0af02d28972ca08 Fix player sizing working in reverse --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 5161d3f6..c26a5530 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2258,7 +2258,7 @@ void ApplyHealthSize() } else { - self.scale = cvar("g_healthsize") / bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")); + self.scale = bound(cvar("g_healthsize_min"), self.health, cvar("g_healthsize_max")) / cvar("g_healthsize"); // The following code sets the bounding box to match the player's size. // It is currently disabled because of issues with engine movement prediction (cl_movement).