pickup height fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3417 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-06 09:54:47 +00:00
parent f7199eca34
commit 562619c68e
+1
View File
@@ -241,6 +241,7 @@ void checkitems(playerent *d)
if(e.type==CTF_FLAG) continue;
// simple 2d collision
vec v(e.x, e.y, S(e.x, e.y)->floor+eyeheight);
if(isitem(e.type)) v.z += e.attr1;
if(d->o.dist(v)<2.5f) trypickup(i, d);
}
if(m_flags) loopi(2)