From ca9305dd0202235bf30d9cf0747f047241bd536a Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 20 Sep 2014 00:45:21 +0200 Subject: [PATCH] Fix - don't allow dead body of player to climb on the ladder It was visible probably only locally. --- source/src/physics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 1dcff6c8..eca3d01b 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -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;