From: Martin Taibr Date: Thu, 25 Jul 2019 20:59:47 +0000 (+0200) Subject: remove local X-Git-Tag: xonotic-v0.8.5~1406^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=17659a0446f9789974a93b5544f7bf85317c8363;p=xonotic%2Fxonotic-data.pk3dir.git remove local --- 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;