]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/accuracy.qc
Replace all direct assignments to self with setself(e)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / accuracy.qc
index 1ef81a409eaae283ed2a456deb748a7d851e24eb..d78d93c873e33760c29f84c6c46509a541f62ffe 100644 (file)
@@ -18,7 +18,7 @@ float accuracy_byte(float n, float d)
 }
 
 float accuracy_send(entity to, int sf)
-{
+{SELFPARAM();
        int w, f;
        entity a;
        WriteByte(MSG_ENTITY, ENT_CLIENT_ACCURACY);
@@ -113,9 +113,7 @@ void accuracy_add(entity e, int w, float fired, float hit)
 
 float accuracy_isgooddamage(entity attacker, entity targ)
 {
-       frag_attacker = attacker;
-       frag_target = targ;
-       float mutator_check = MUTATOR_CALLHOOK(AccuracyTargetValid);
+       float mutator_check = MUTATOR_CALLHOOK(AccuracyTargetValid, attacker, targ);
 
        if(!warmup_stage)
        if(targ.deadflag == DEAD_NO)