attempt to fix spectator-stuck-bug
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2230 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -398,7 +398,8 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
|
||||
hitplayer = NULL;
|
||||
if(collide(pl, false, drop, rise)) continue;
|
||||
else collided = true;
|
||||
if(pl->type==ENT_CAMERA) return;
|
||||
// fs: trying to fix the spectator bug (monochrome screen et al)
|
||||
//if(pl->type==ENT_CAMERA) continue; //return;
|
||||
if(pl->type==ENT_PLAYER && hitplayer)
|
||||
{
|
||||
float dx = hitplayer->o.x-pl->o.x, dy = hitplayer->o.y-pl->o.y, mag = sqrtf(dx*dx+dy*dy);
|
||||
|
||||
Reference in New Issue
Block a user