Fix - don't allow dead body of player to climb on the ladder

It was visible probably only locally.
This commit is contained in:
aurhat
2014-09-20 00:45:21 +02:00
parent 533797f6e7
commit ca9305dd02
+1 -1
View File
@@ -434,7 +434,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
const float climbspeed = 1.0f;
if(pl->type==ENT_BOT && pl->state == CS_ALIVE) pl->vel.z = climbspeed; // bots climb upwards only
else if(pl->type==ENT_PLAYER)
else if(pl->type==ENT_PLAYER && pl->state == CS_ALIVE)
{
if(((playerent *)pl)->k_up) pl->vel.z = climbspeed;
else if(((playerent *)pl)->k_down) pl->vel.z = -climbspeed;