From 17659a0446f9789974a93b5544f7bf85317c8363 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Thu, 25 Jul 2019 22:59:47 +0200 Subject: [PATCH] remove local --- qcsrc/server/weapons/tracing.qc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 22ecbdc38..99fa2df74 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -295,9 +295,6 @@ void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector { // removal from the list is handled below - // get the details we need to call the damage function - vector hitloc = it.railgunhitloc; - float foff = ExponentialFalloff(mindist, maxdist, halflifedist, it.railgundistance); float ffs = ExponentialFalloff(mindist, maxdist, forcehalflifedist, it.railgundistance); @@ -306,7 +303,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); + Damage(it, this, this, bdamage * foff, deathtype, weaponentity, it.railgunhitloc, it.railgunforce * ffs); it.railgunhitloc = '0 0 0'; it.railgunhitsolidbackup = SOLID_NOT; -- 2.39.2