]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
removed (int) casts added by Sajt's last commit, as they are probably a slowdown...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2005 05:33:53 +0000 (05:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2005 05:33:53 +0000 (05:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5681 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 03cc09613818f300ec6297397c445f8c66b46db1..18475c2495d7af93677b988cc453a364c19a1b95 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -648,11 +648,11 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime)
        for (e = 0;e < numcheckentities;e++)
        {
                check = checkentities[e];
-               if ((int)check->fields.server->movetype == MOVETYPE_PUSH
-                || (int)check->fields.server->movetype == MOVETYPE_NONE
-                || (int)check->fields.server->movetype == MOVETYPE_FOLLOW
-                || (int)check->fields.server->movetype == MOVETYPE_NOCLIP
-                || (int)check->fields.server->movetype == MOVETYPE_FAKEPUSH)
+               if (check->fields.server->movetype == MOVETYPE_NONE
+                || check->fields.server->movetype == MOVETYPE_PUSH
+                || check->fields.server->movetype == MOVETYPE_FOLLOW
+                || check->fields.server->movetype == MOVETYPE_NOCLIP
+                || check->fields.server->movetype == MOVETYPE_FAKEPUSH)
                        continue;
 
                // if the entity is standing on the pusher, it will definitely be moved
@@ -676,7 +676,7 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime)
                        VectorCopy (move1, move);
 
                // remove the onground flag for non-players
-               if ((int)check->fields.server->movetype != MOVETYPE_WALK)
+               if (check->fields.server->movetype != MOVETYPE_WALK)
                        check->fields.server->flags = (int)check->fields.server->flags & ~FL_ONGROUND;
 
                VectorCopy (check->fields.server->origin, check->priv.server->moved_from);
@@ -705,7 +705,7 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime)
                                // fail the move
                                if (check->fields.server->mins[0] == check->fields.server->maxs[0])
                                        continue;
-                               if ((int)check->fields.server->solid == SOLID_NOT || (int)check->fields.server->solid == SOLID_TRIGGER)
+                               if (check->fields.server->solid == SOLID_NOT || check->fields.server->solid == SOLID_TRIGGER)
                                {
                                        // corpse
                                        check->fields.server->mins[0] = check->fields.server->mins[1] = 0;