]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix MOVETYPE_FAKEPUSH (tenebrae movetype 13) implementation
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Aug 2011 11:34:12 +0000 (11:34 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 16 Aug 2011 20:41:11 +0000 (22:41 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11276 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd9b6a7eef6a97ea184a54ededf6cc610164138d

sv_phys.c

index a28d178b2a0b195368fb1f8fe7fcd8945c50b2a8..24276208d401cdff987cfdc66ece0feb19862e91 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1771,7 +1771,10 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime)
 // see if any solid entities are inside the final position
        num_moved = 0;
 
-       numcheckentities = World_EntitiesInBox(&sv.world, mins, maxs, MAX_EDICTS, checkentities);
+       if (PRVM_serveredictfloat(pusher, movetype) == MOVETYPE_FAKEPUSH) // Tenebrae's MOVETYPE_PUSH variant that doesn't push...
+               numcheckentities = 0;
+       else // MOVETYPE_PUSH
+               numcheckentities = World_EntitiesInBox(&sv.world, mins, maxs, MAX_EDICTS, checkentities);
        for (e = 0;e < numcheckentities;e++)
        {
                prvm_edict_t *check = checkentities[e];
@@ -1782,7 +1785,6 @@ void SV_PushMove (prvm_edict_t *pusher, float movetime)
                case MOVETYPE_PUSH:
                case MOVETYPE_FOLLOW:
                case MOVETYPE_NOCLIP:
-               case MOVETYPE_FAKEPUSH:
                        continue;
                default:
                        break;