mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
Merge pull request #372 from ChillyDoom/SkullPopCamera
- Fixed: A_SkullPop did not work with spy mode.
This commit is contained in:
commit
6573902a26
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue