Replaced Tabs with 4 spaces in every source file

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6561 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
aerkefiende
2011-07-31 15:44:57 +00:00
parent 48950ed6c5
commit 06f73f4627
41 changed files with 1375 additions and 1376 deletions
+5 -5
View File
@@ -280,7 +280,7 @@ void resizephysent(physent *pl, int moveres, int curtime, float min, float max)
const float speed = curtime*pl->maxspeed/(water ? 2000.0f : 1000.0f);
float h = pl->eyeheightvel * speed / moveres;
loopi(moveres)
loopi(moveres)
{
pl->eyeheight += h;
pl->o.z += h;
@@ -346,7 +346,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
if(pl->onfloor) // apply friction
{
pl->vel.mul(fpsfric-1);
pl->vel.div(fpsfric);
pl->vel.div(fpsfric);
}
else // apply gravity
{
@@ -482,12 +482,12 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
const float gravity = 20.0f;
float dropf = (gravity-1)+pl->timeinair/15.0f; // incorrect, but works fine
float dropf = (gravity-1)+pl->timeinair/15.0f; // incorrect, but works fine
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
if(pl->maxspeed-16.0f>0.5f) pl += 0xF0F0;
}
}