checking if file system has space to write (linux only), reverting the protocol to make it compatible with 1.1.0.1, tagging AUTH as WiP, tunning the player/bot collision... preparing to release patch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5656 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -527,8 +527,8 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
|
||||
if(pl->type!=ENT_BOUNCE && hitplayer)
|
||||
{
|
||||
vec dr(hitplayer->o.x-pl->o.x,hitplayer->o.y-pl->o.y,0);
|
||||
float dist = dr.ufmagxy(),
|
||||
push = (dist > 0.1f ? dr.dotxy(d)*1.1f/dist : dr.dotxy(d) * 11.0f);
|
||||
float invdist = ufInvSqrt(dr.sqrxy()),
|
||||
push = (invdist < 10.0f ? dr.dotxy(d)*1.1f*invdist : dr.dotxy(d) * 11.0f);
|
||||
|
||||
pl->o.x -= f*d.x*push;
|
||||
pl->o.y -= f*d.y*push;
|
||||
|
||||
Reference in New Issue
Block a user