From: Martin Taibr Date: Thu, 25 Jul 2019 20:47:06 +0000 (+0200) Subject: remove commented out code from 2004 X-Git-Tag: xonotic-v0.8.5~1406^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2337380225ef63c3351bd2ba796734a1e0805d2;p=xonotic%2Fxonotic-data.pk3dir.git remove commented out code from 2004 --- diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 6822f6774..22ecbdc38 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -270,9 +270,6 @@ void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector it.solid = it.railgunhitsolidbackup; }); - // spawn a temporary explosion entity for RadiusDamage calls - //explosion = spawn(); FIXME kill? - // Find all players the beam passed close by (even those hit) float length = vlen(endpoint - start); entity pseudoprojectile = NULL; @@ -309,11 +306,7 @@ void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector // apply the damage if (it.takedamage) - Damage (it, this, this, bdamage * foff, deathtype, weaponentity, hitloc, it.railgunforce * ffs); - - // create a small explosion to throw gibs around (if applicable) - //setorigin(explosion, hitloc); - //RadiusDamage (explosion, this, 10, 0, 50, NULL, NULL, 300, deathtype); + Damage(it, this, this, bdamage * foff, deathtype, weaponentity, hitloc, it.railgunforce * ffs); it.railgunhitloc = '0 0 0'; it.railgunhitsolidbackup = SOLID_NOT;