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