- Fixed: A_SkullPop did not work with spy mode.

This commit is contained in:
Chris 2015-09-06 12:12:57 +01:00
parent 90d1e85aa2
commit 99120d8442

View file

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