fix fuel on healtharmor panel when mirror mode is on
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 08:34:38 +0000 (11:34 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 08:34:38 +0000 (11:34 +0300)
qcsrc/client/hud.qc

index b003478..4135f65 100644 (file)
@@ -1960,7 +1960,7 @@ void HUD_HealthArmor(void)
                        }
 
                        if(cvar(strcat("hud_", HUD_Panel_GetName(id), "_mirror"))) {
-                               barpos = pos - eX * mySize_x * min(1, fuel/100);
+                               barpos = pos + eX * mySize_x - eX * mySize_x * min(1, fuel/100);
                                barsize = eX * mySize_x * min(1, fuel/100) + eY * 0.2 * mySize_y;
                        } else {
                                barpos = pos;