Merge pull request #372 from ChillyDoom/SkullPopCamera

- Fixed: A_SkullPop did not work with spy mode.
This commit is contained in:
coelckers 2015-09-06 14:12:41 +02:00
commit 6573902a26

View file

@ -1562,12 +1562,15 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SkullPop)
if (player != NULL)
{
player->mo = mo;
if (player->camera == self)
{
player->camera = mo;
}
player->damagecount = 32;
}
for (int i = 0; i < MAXPLAYERS; ++i)
{
if (playeringame[i] && players[i].camera == self)
{
players[i].camera = mo;
}
}
}
//----------------------------------------------------------------------------