]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Allow servers to define custom help messages for votes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index cf7ca8087f4cea03f6f74c945c90b12cb6c789b2..7dcbd83d2b3c661db795119e6698424a5f4baa40 100644 (file)
@@ -1191,12 +1191,11 @@ void HUD_Crosshair(entity this)
 
                                ring_scale = autocvar_crosshair_ring_size;
 
-                               float weapon_clipload, weapon_clipsize;
-                               weapon_clipload = STAT(WEAPON_CLIPLOAD);
-                               weapon_clipsize = STAT(WEAPON_CLIPSIZE);
-
                                entity wepent = viewmodels[0]; // TODO: unhardcode
 
+                               int weapon_clipload = wepent.clip_load;
+                               int weapon_clipsize = wepent.clip_size;
+
                                float arc_heat = wepent.arc_heat_percent;
                                float vcharge = wepent.vortex_charge;
                                float vchargepool = wepent.vortex_chargepool_ammo;