Get all the bits from STAT_ARMOR otherwise negative values are read as very high...
authorterencehill <piuntn@gmail.com>
Sun, 12 Apr 2020 15:44:25 +0000 (17:44 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 12 Apr 2020 15:44:25 +0000 (17:44 +0200)
qcsrc/common/stats.qh

index c5e45e8..a63148f 100644 (file)
@@ -22,7 +22,7 @@ const int MAX_CL_STATS = 256;
 
 #if defined(CSQC)
     #define g_stat_HEALTH getstati(STAT_HEALTH)
-    #define g_stat_ARMOR getstat_int(STAT_ARMOR)
+    #define g_stat_ARMOR getstati(STAT_ARMOR)
     #define g_stat_SHELLS getstat_int(STAT_SHELLS)
     #define g_stat_NAILS getstat_int(STAT_NAILS)
     #define g_stat_ROCKETS getstat_int(STAT_ROCKETS)