]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove commented out code from 2004
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 25 Jul 2019 20:47:06 +0000 (22:47 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 25 Jul 2019 20:47:06 +0000 (22:47 +0200)
qcsrc/server/weapons/tracing.qc

index 6822f6774006ed9a7066f91d215de588434336dc..22ecbdc382f439b4d6f1fd3a417875ffcbaae2c9 100644 (file)
@@ -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;