From 2e39aadada7e5ccb724e948f82cdd26de4f72b31 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 6 Sep 2005 05:33:53 +0000 Subject: [PATCH] removed (int) casts added by Sajt's last commit, as they are probably a slowdown in most cases git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5681 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 03cc0961..18475c24 100644 --- 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; -- 2.39.2