]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Fri, 22 Jul 2016 16:37:25 +0000 (02:37 +1000)
committerMario <mario@smbclan.net>
Fri, 22 Jul 2016 16:37:25 +0000 (02:37 +1000)
qcsrc/common/physics/movetypes/movetypes.qh
qcsrc/common/triggers/func/train.qc
qcsrc/common/triggers/platforms.qc
qcsrc/lib/warpzone/server.qc

index 4459bbf59ab00d6bd26bfb7c744eaab3fffe3a1c..8b061e383fc949ddeffb1c7d26c309215a673dd6 100644 (file)
@@ -5,10 +5,10 @@
 #define SET_ONGROUND(s)                     ((s).flags |= FL_ONGROUND)
 #define UNSET_ONGROUND(s)                   ((s).flags &= ~FL_ONGROUND)
 
-.float move_ltime;
-.void(entity this) move_think;
-.float move_nextthink;
-.void(entity this, entity blocker) move_blocked;
+#ifdef CSQC
+.float bouncestop;
+.float bouncefactor;
+#endif
 
 .float move_movetype;
 .float move_time;
index 85dc5b29a5ebc597cc3eb98ceb7c3adecaff115a..d9e1799fbd799cf5acc2858f51c2b1dfe449b197 100644 (file)
@@ -322,8 +322,6 @@ NET_HANDLE(ENT_CLIENT_TRAIN, bool isnew)
                //func_train_find();
 
                // but we will need these
-               //this.move_nextthink = this.move_ltime + 0.1;
-               //this.move_think = train_next;
                train_next(this);
 
                this.move_movetype = MOVETYPE_PUSH;
index c1f481f8af515a262c516ac2b56c3ea698d22148..324fd3676b2890bd4291ae36a3eb103797279b3d 100644 (file)
@@ -128,13 +128,8 @@ void plat_outside_touch(entity this, entity toucher)
 
 void plat_trigger_use(entity this, entity actor, entity trigger)
 {
-#ifdef SVQC
        if (getthink(this))
                return;         // already activated
-#elif defined(CSQC)
-       if(this.move_think)
-               return;
-#endif
        plat_go_down(this);
 }
 
index 594bd48e1568aaec57e514cd4742867c6136810e..5262ca6de3a094ff2e46c6ddddeb7ab91651fe24 100644 (file)
@@ -40,9 +40,9 @@ void WarpZone_TeleportPlayer(entity teleporter, entity player, vector to, vector
        setorigin(player, to); // NOTE: this also aborts the move, when this is called by touch
 #ifdef SVQC
        player.oldorigin = to; // for DP's unsticking
+       player.fixangle = true;
 #endif
        player.angles = to_angles;
-       player.fixangle = true;
        player.velocity = to_velocity;
 
        BITXOR_ASSIGN(player.effects, EF_TELEPORT_BIT);