]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix some things plus add spectator to an exemption list for a check
authorSamual <samual@xonotic.org>
Tue, 31 May 2011 23:50:39 +0000 (19:50 -0400)
committerSamual <samual@xonotic.org>
Tue, 31 May 2011 23:50:39 +0000 (19:50 -0400)
server.h
sv_phys.c

index af460cdbc5164000a3aa5b983b690fa82b79bab8..6874033480d369c69502433f36296d7eff39fcff 100644 (file)
--- a/server.h
+++ b/server.h
@@ -316,8 +316,8 @@ typedef struct client_s
 #define MOVETYPE_BOUNCEMISSILE 11              ///< bounce w/o gravity
 #define MOVETYPE_FOLLOW                        12              ///< track movement of aiment
 #define MOVETYPE_FAKEPUSH              13              ///< tenebrae's push that doesn't push
+#define MOVETYPE_SPECTATOR     14
 #define MOVETYPE_PHYSICS               32              ///< indicates this object is physics controlled
-#define MOVETYPE_SPECTATOR     64
 
 // edict->solid values
 #define        SOLID_NOT                               0               ///< no interaction with other objects
index 3b9854c720ce2ccccebe81b6ba728cd17c8ddd0b..04b0e4afa077ac20ea556e544c5877f53265169b 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -987,7 +987,8 @@ void SV_CheckAllEnts (void)
                if (check->fields.server->movetype == MOVETYPE_PUSH
                 || check->fields.server->movetype == MOVETYPE_NONE
                 || check->fields.server->movetype == MOVETYPE_FOLLOW
-                || check->fields.server->movetype == MOVETYPE_NOCLIP)
+                || check->fields.server->movetype == MOVETYPE_NOCLIP
+                || check->fields.server->movetype == MOVETYPE_SPECTATOR)
                        continue;
 
                if (SV_TestEntityPosition (check, vec3_origin))
@@ -2916,6 +2917,7 @@ static void SV_Physics_ClientEntity(prvm_edict_t *ent)
                if (host_client->clmovement_inputtimeout <= 0)
                        SV_WalkMove (ent);
                break;
+       case MOVETYPE_SPECTATOR:
        case MOVETYPE_TOSS:
        case MOVETYPE_BOUNCE:
        case MOVETYPE_BOUNCEMISSILE: