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
This commit is contained in:
Lee Salzman
2008-10-17 23:25:20 +00:00
parent eb9b9c1781
commit ff5048d4ac
+1 -1
View File
@@ -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;