no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1369 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-10-16 20:54:44 +00:00
parent dc3f9bf347
commit c1c78fa5f1
3 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -268,8 +268,9 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
else // fake physics for player ents to create _the_ cube movement (tm)
{
const int timeinair = pl->timeinair;
int move = pl->onladder && !pl->onfloor && pl->move == -1 ? 0 : pl->move; // movement on ladder
d.x = (float)(move*cosf(RAD*(pl->yaw-90)));
d.y = (float)(move*sinf(RAD*(pl->yaw-90)));
d.z = 0.0f;
@@ -328,6 +329,9 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
pl->timeinair += curtime;
}
}
// long jump
if(timeinair > 600 && !pl->timeinair) if(local) playsoundc(S_LAND); else playsound(S_LAND, pl);
}
const float gravity = 20.0f;