fix crouching on too thin clip entities

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4265 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-03-08 13:45:39 +00:00
parent ea7733ee6f
commit 274497ecec
+1 -1
View File
@@ -120,7 +120,7 @@ bool mmcollide(physent *d, float &hi, float &lo) // collide with a map
{
const float cz = float(S(e.x, e.y)->floor+e.attr1), ch = float(e.attr4);
const float dz = d->o.z-d->eyeheight;
if(dz<cz) { if(cz<hi) hi = cz; }
if(dz < cz - 0.001) { if(cz<hi) hi = cz; }
else if(cz+ch>lo) lo = cz+ch;
if(hi-lo < playerheight) return false;
}