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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user