]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/viewloc.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / viewloc.qc
index 7003f38891f1d1a0adafe16927a895f9124e189f..bfd6db1dcc51636e9c01807e73c6c5cd080b899f 100644 (file)
@@ -78,7 +78,7 @@ void viewloc_init(entity this)
 
        Net_LinkEntity(this, false, 0, trigger_viewloc_send);
 
-       this.think = viewloc_think;
+       setthink(this, viewloc_think);
        this.nextthink = time;
 }
 
@@ -159,7 +159,7 @@ NET_HANDLE(ENT_CLIENT_VIEWLOC_TRIGGER, bool isnew)
        this.cnt = point1;
        this.count = point2;
 
-       this.think = trigger_viewloc_updatelink;
+       setthink(this, trigger_viewloc_updatelink);
        this.nextthink = time + 1; // we need to delay this or else
 
        this.classname = "trigger_viewlocation";