clip radius tweaks

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3186 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-22 10:18:55 +00:00
parent 6fcf88cad6
commit 7ab1bfa104
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ bool mmcollide(physent *d, float &hi, float &lo) // collide with a map
entity &e = ents[i];
if(e.type==CLIP)
{
const float r = max(float(e.attr2), 1.0f) + d->radius;
const float r = e.attr2 + d->radius;
if(fabs(e.x-d->o.x)<r && fabs(e.y-d->o.y)<r)
{
const float cz = float(S(e.x, e.y)->floor+e.attr1), ch = max(float(e.attr3), 1.0f);