Fix - don't allow dead body of player to climb on the ladder
It was visible probably only locally.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user