Fix accuracy
authorMario <zacjardine@y7mail.com>
Mon, 15 Dec 2014 03:24:18 +0000 (14:24 +1100)
committerMario <zacjardine@y7mail.com>
Mon, 15 Dec 2014 03:24:18 +0000 (14:24 +1100)
qcsrc/server/weapons/tracing.qc

index 755ab59..55e6d54 100644 (file)
@@ -290,7 +290,7 @@ void FireRailgunBullet (vector start, vector end, float bdamage, float bforce, f
                f = ExponentialFalloff(mindist, maxdist, halflifedist, ent.railgundistance);
                ffs = ExponentialFalloff(mindist, maxdist, forcehalflifedist, ent.railgundistance);
 
-               if(accuracy_isgooddamage(self.realowner, ent))
+               if(accuracy_isgooddamage(self, ent))
                        totaldmg += bdamage * f;
 
                // apply the damage