no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@768 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-12-06 23:09:23 +00:00
parent 0feaa049cf
commit 634b167acd
10 changed files with 59 additions and 148 deletions
+6 -3
View File
@@ -218,10 +218,13 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
{
if(pl->onladder)
{
if(pl->type==ENT_PLAYER || pl->type==ENT_BOT)
const float climbspeed = 1.0f;
if(pl->type==ENT_BOT) pl->vel.z = climbspeed; // bots climb upwards only
else if(pl->type==ENT_PLAYER)
{
if(((playerent *)pl)->k_up) pl->vel.z = 1.0f;
else if(((playerent *)pl)->k_down) pl->vel.z = -1.0f;
if(((playerent *)pl)->k_up) pl->vel.z = climbspeed;
else if(((playerent *)pl)->k_down) pl->vel.z = -climbspeed;
};
pl->timeinair = 0;
}