]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use sv_mapformat_is_quake3 to decide what to spawn in place of weapon_nailgun
authorbones_was_here <bones_was_here@yahoo.com.au>
Tue, 14 Jul 2020 10:43:10 +0000 (20:43 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Tue, 14 Jul 2020 10:43:10 +0000 (20:43 +1000)
qcsrc/server/compat/quake3.qc

index 4f2b380ddd0e5b9828a807c6ad3524f5785bab5b..d7efd67dae6180d8fcc4de82379c46d7dae64398 100644 (file)
@@ -56,7 +56,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, q3compat & BIT(0), WEP_CRYLINK, WEP_ELECTRO)
+SPAWNFUNC_WEAPON_COND(weapon_nailgun, cvar_string("sv_mapformat_is_quake3"), WEP_CRYLINK, WEP_ELECTRO)
 SPAWNFUNC_ITEM(ammo_nails, ITEM_Cells)
 
 // LG -> Electro