]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/rotating.qc
Improve linking of normal waypoints to ladders by autogenerating waypoints for ladders
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / rotating.qc
index 22f3dedea282926edb76fd55ec172d740aad02af..9715c25452dcaef75849c5700f6b37c5a09b6b05 100644 (file)
@@ -1,3 +1,4 @@
+#include "rotating.qh"
 #ifdef SVQC
 void func_rotating_setactive(entity this, int astate)
 {
@@ -68,8 +69,8 @@ spawnfunc(func_rotating)
     setblocked(this, generic_plat_blocked);
 
        // wait for targets to spawn
-       this.SUB_NEXTTHINK = this.SUB_LTIME + 999999999;
-       SUB_THINK(this, SUB_NullThink); // for PushMove
+       this.nextthink = this.ltime + 999999999;
+       setthink(this, SUB_NullThink); // for PushMove
 
        // TODO make a reset function for this one
 }