"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
This commit is contained in:
Lucas GAUTHERON
2013-03-10 16:18:34 +00:00
parent ad2aa69d2d
commit 1c21d746c0
+1 -1
View File
@@ -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;