]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 b003478478f6fa2cfeefb177821f74eb690254c6..4135f65604d33779a3505d312ece43ebb77bc976 100644 (file)
@@ -1960,7 +1960,7 @@ void HUD_HealthArmor(void)
                        }
 
                        if(cvar(strcat("hud_", HUD_Panel_GetName(id), "_mirror"))) {
                        }
 
                        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;
                                barsize = eX * mySize_x * min(1, fuel/100) + eY * 0.2 * mySize_y;
                        } else {
                                barpos = pos;