*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@865 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-03-24 05:49:01 +00:00
parent 910c2e3947
commit c1449e99c8
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -272,14 +272,14 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
if(water) { dropf = 5; pl->timeinair = 0; }; // float slowly down in water
if(pl->onladder) { dropf = 0; pl->timeinair = 0; };
drop = dropf*curtime/gravity/100/moveres; // at high fps, gravity kicks in too fast
rise = speed/moveres/1.2f; // extra smoothness when lifting up stairs
drop = dropf*curtime/gravity/100/moveres; // at high fps, gravity kicks in too fast
rise = speed/moveres/1.2f; // extra smoothness when lifting up stairs
};
const float f = 1.0f/moveres;
loopi(moveres) // discrete steps collision detection & sliding
if(!floating) loopi(moveres) // discrete steps collision detection & sliding
{
const float f = 1.0f/moveres;
// try move forward
pl->o.x += f*d.x;
pl->o.y += f*d.y;