X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sv_phys.c;fp=sv_phys.c;h=b26ebe225e90f6020e8411a7d6491565605a320b;hb=c573a47a538a3a90cb34ccf2e3e21a0d1b129d20;hp=a918ea25603c7145aa59e09174643011a5e22152;hpb=f847004b9818defbfd4bf15fe7b891fee2706079;p=xonotic%2Fdarkplaces.git diff --git a/sv_phys.c b/sv_phys.c index a918ea25..b26ebe22 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -2350,7 +2350,11 @@ static void SV_WalkMove (prvm_edict_t *ent) VectorCopy(PRVM_serveredictvector(ent, maxs), entmaxs); trace = SV_TraceBox(upmove, entmins, entmaxs, downmove, type, ent, SV_GenericHitSuperContentsMask(ent), skipsupercontentsmask, skipmaterialflagsmask, collision_extendmovelength.value); if(trace.fraction < 1 && trace.plane.normal[2] > 0.7) + { clip |= 1; // but we HAVE found a floor + // set groundentity so we get carried when walking onto a mover with sv_gameplayfix_nogravityonground + PRVM_serveredictedict(ent, groundentity) = PRVM_EDICT_TO_PROG(trace.ent); + } } // if the move did not hit the ground at any point, we're not on ground