X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Ftracing.qc;h=49f6fdde73a51115762ff01f882b42cea485ee40;hb=ca811d45f7e7b64a01657b2252cab3cfdfedd970;hp=98cbb2ba872a10794dc057693612c108163ec23e;hpb=54626fc8dc1b2ec9932b93121994a6d0f2e6643e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 98cbb2ba8..49f6fdde7 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -25,7 +25,7 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, vector s_forward, vector m float oldsolid; vector vecs, dv; oldsolid = ent.dphitcontentsmask; - if(ent.weapon == WEP_RIFLE) + if(ent.weapon == WEP_RIFLE.m_id) ent.dphitcontentsmask = DPCONTENTS_BODY | DPCONTENTS_CORPSE; else ent.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE; @@ -273,7 +273,7 @@ void FireRailgunBullet (vector start, vector end, float bdamage, float bforce, f //explosion = spawn(); // Find all non-hit players the beam passed close by - if(deathtype == WEP_VAPORIZER || deathtype == WEP_VORTEX) + if(deathtype == WEP_VAPORIZER.m_id || deathtype == WEP_VORTEX.m_id) { FOR_EACH_REALCLIENT(msg_entity) if(msg_entity != self)