From ff5048d4ac0135e80db39ed7ecec5b3ded641a65 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 17 Oct 2008 23:25:20 +0000 Subject: [PATCH] fix sliding in spectator fly mode git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3113 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 93838792..9de0a43f 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -468,7 +468,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } pl->o == oo; } - if(pl->type==ENT_CAMERA || (pl->type==ENT_PLAYER && pl->state==CS_DEAD)) + if(pl->type==ENT_CAMERA || (pl->type==ENT_PLAYER && pl->state==CS_DEAD && ((playerent *)pl)->spectatemode != SM_FLY)) { pl->o.x -= f*d.x; pl->o.y -= f*d.y;