]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use cvar() instead of cvar_string() for sv_mapformat_is_quake3 checks
authorbones_was_here <bones_was_here@yahoo.com.au>
Tue, 14 Jul 2020 12:59:08 +0000 (22:59 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Tue, 14 Jul 2020 12:59:08 +0000 (22:59 +1000)
qcsrc/server/compat/quake3.qc
qcsrc/server/items.qc

index 0243a940986555243a2e7ae3c36db0486575db8a..1fa15871a1671f378d733975a1ec722012df2baf 100644 (file)
@@ -57,7 +57,7 @@ SPAWNFUNC_WEAPON(weapon_chaingun, WEP_HLAC)
 SPAWNFUNC_ITEM(ammo_belt, ITEM_Cells)
 
 // Team Arena Nailgun -> Crylink || Quake Nailgun -> Electro
-SPAWNFUNC_WEAPON_COND(weapon_nailgun, cvar_string("sv_mapformat_is_quake3"), WEP_CRYLINK, WEP_ELECTRO)
+SPAWNFUNC_WEAPON_COND(weapon_nailgun, cvar("sv_mapformat_is_quake3"), WEP_CRYLINK, WEP_ELECTRO)
 SPAWNFUNC_ITEM(ammo_nails, ITEM_Cells)
 
 // LG -> Electro
index 9814db93be59c76320a9d258e297b0501766bcce..d8a7d808d2b0510b4268766361337db39e123a82 100644 (file)
@@ -130,7 +130,7 @@ void Item_SetExpiring(entity item, bool expiring)
 
 // Compatibility spawn functions
 
-SPAWNFUNC_ITEM_COND(item_armor1, cvar_string("sv_mapformat_is_quake3"), ITEM_ArmorSmall, ITEM_ArmorMedium)
+SPAWNFUNC_ITEM_COND(item_armor1, cvar("sv_mapformat_is_quake3"), ITEM_ArmorSmall, ITEM_ArmorMedium)
 
 SPAWNFUNC_ITEM(item_armor25, ITEM_ArmorMega)