X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=sv_move.c;h=e89415feb7622877cff0240c2e44e37420e8e77e;hb=1ca72567ff491c3ef09329d3373802ed6cdb9a38;hp=8c8f9b866aaaf3f7ec5abd0431829398ecef5c6a;hpb=0960c1f25d397c09f680454759f4ea747975c8c9;p=xonotic%2Fdarkplaces.git diff --git a/sv_move.c b/sv_move.c index 8c8f9b86..e89415fe 100644 --- a/sv_move.c +++ b/sv_move.c @@ -51,7 +51,7 @@ qboolean SV_CheckBottom (prvm_edict_t *ent) { start[0] = x ? maxs[0] : mins[0]; start[1] = y ? maxs[1] : mins[1]; - if (!(SV_PointSuperContents(start) & SUPERCONTENTS_SOLID)) + if (!(SV_PointSuperContents(start) & (SUPERCONTENTS_SOLID | SUPERCONTENTS_BODY))) goto realcheck; } @@ -309,7 +309,7 @@ void SV_NewChaseDir (prvm_edict_t *actor, prvm_edict_t *enemy, float dist) } // try other directions - if ( ((rand()&3) & 1) || abs(deltay)>abs(deltax)) + if ( ((rand()&3) & 1) || fabs(deltay)>fabs(deltax)) { tdir=d[1]; d[1]=d[2];