]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Replace a few '1 0 0' * vec with vec.x (it optimizes only compile time since gmqcc...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index 76faaab331d9e437de5792e0d5cf354147fd1ee6..efd50481e7c8667531aa329071857a6f3c5888a9 100644 (file)
@@ -2682,9 +2682,9 @@ void PlayerPostThink (entity this)
        }
 
        if (this.waypointsprite_attachedforcarrier) {
-           vector v = healtharmor_maxdamage(GetResourceAmount(this, RESOURCE_HEALTH), GetResourceAmount(this, RESOURCE_ARMOR), autocvar_g_balance_armor_blockpercent, DEATH_WEAPON.m_id);
-               WaypointSprite_UpdateHealth(this.waypointsprite_attachedforcarrier, '1 0 0' * v);
-    }
+               float hp = healtharmor_maxdamage(GetResourceAmount(this, RESOURCE_HEALTH), GetResourceAmount(this, RESOURCE_ARMOR), autocvar_g_balance_armor_blockpercent, DEATH_WEAPON.m_id).x;
+               WaypointSprite_UpdateHealth(this.waypointsprite_attachedforcarrier, hp);
+       }
 
        CSQCMODEL_AUTOUPDATE(this);
 }