From 1c21d746c00422eea8c49ebfffa15e683a5f9407 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 10 Mar 2013 16:18:34 +0000 Subject: [PATCH] "Body of a dead bot continues to climb ladder" bug fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7340 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- 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 9a4996a0..80032187 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -429,7 +429,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) { const float climbspeed = 1.0f; - if(pl->type==ENT_BOT) pl->vel.z = climbspeed; // bots climb upwards only + if(pl->type==ENT_BOT && pl->state == CS_ALIVE) pl->vel.z = climbspeed; // bots climb upwards only else if(pl->type==ENT_PLAYER) { if(((playerent *)pl)->k_up) pl->vel.z = climbspeed;