]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/impulse.qc
CSQC: use touch accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / impulse.qc
index 1125169011ee6f5c25596ca7df17958f9d842b84..f5feccef0d4b0f4714d79f63a684ff5cf6f59067 100644 (file)
@@ -231,8 +231,8 @@ NET_HANDLE(ENT_CLIENT_TRIGGER_IMPULSE, bool isnew)
        this.entremove = trigger_remove_generic;
        this.move_time = time;
 
-       if(this.radius) { this.move_touch = trigger_impulse_touch3; }
-       else if(this.target) { this.move_touch = trigger_impulse_touch1; }
-       else { this.move_touch = trigger_impulse_touch2; }
+       if (this.radius) { settouch(this, trigger_impulse_touch3); }
+       else if (this.target) { settouch(this, trigger_impulse_touch1); }
+       else { settouch(this, trigger_impulse_touch2); }
 }
 #endif