]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/bobbing.qc
Merge branch 'terencehill/respawn_timer_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / bobbing.qc
index 0dcba018e7cbc20cce96703967ea03cde6b66dfb..e030632498d2c3f0cfb488135edd51245dedc642 100644 (file)
@@ -1,7 +1,7 @@
 #ifdef SVQC
 .float height;
-void func_bobbing_controller_think()
-{SELFPARAM();
+void func_bobbing_controller_think(entity this)
+{
        vector v;
        self.nextthink = time + 0.1;
 
@@ -72,9 +72,9 @@ spawnfunc(func_bobbing)
        controller = new(func_bobbing_controller);
        controller.owner = this;
        controller.nextthink = time + 1;
-       controller.think = func_bobbing_controller_think;
+       setthink(controller, func_bobbing_controller_think);
        this.SUB_NEXTTHINK = this.SUB_LTIME + 999999999;
-       this.SUB_THINK = SUB_NullThink;
+       SUB_THINK(this, SUB_NullThink);
 
        // Savage: Reduce bandwith, critical on e.g. nexdm02
        this.effects |= EF_LOWPRECISION;