]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item.qh
Label some field pointers with the const attribute
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item.qh
index 030b4db1c089f53f06c62a1cb19590ac48b50977..cf4e288ba6cd1769c127ef9ca27ab16ca8411579 100644 (file)
@@ -48,8 +48,8 @@ const int IT_UNLIMITED_AMMO                   = IT_UNLIMITED_WEAPON_AMMO | IT_UNLIMITE
 const int IT_PICKUPMASK                        = IT_UNLIMITED_AMMO | IT_JETPACK | IT_FUEL_REGEN; // strength and invincible are handled separately
 
 #ifdef SVQC
-.float  strength_finished = _STAT(STRENGTH_FINISHED);
-.float  invincible_finished = _STAT(INVINCIBLE_FINISHED);
+const .float strength_finished = _STAT(STRENGTH_FINISHED);
+const .float invincible_finished = _STAT(INVINCIBLE_FINISHED);
 
 #define spawnfunc_body(item) \
        if (!Item_IsDefinitionAllowed(item)) \