From 42a132686fd01bf09f78ce27b27828b26b511969 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Fri, 11 Oct 2013 17:22:32 +0000 Subject: [PATCH] crouch bug fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7591 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 dc3d8719..5410323f 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -652,7 +652,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) if(pl->type==ENT_PLAYER || pl->type==ENT_BOT) { // if(pl==player1 && !(intermission || player1->onladder || (pl->trycrouch && !player1->onfloor && player1->timeinair > 50))) updatecrouch(player1, player1->trycrouch); - if(!intermission) updatecrouch((playerent *)pl, pl->trycrouch); + if(!intermission && (pl == player1 || pl->type == ENT_BOT)) updatecrouch((playerent *)pl, pl->trycrouch); const float croucheyeheight = pl->maxeyeheight*3.0f/4.0f; resizephysent(pl, moveres, curtime, croucheyeheight, pl->maxeyeheight); }