mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +00:00
bFriendly should not be set from scripts because this omits needed bookkeeping.
This commit is contained in:
parent
6aa71184f7
commit
5b1f0fdc86
3 changed files with 3 additions and 3 deletions
|
@ -250,7 +250,7 @@ extend class Actor
|
|||
else if (originator.player)
|
||||
{
|
||||
// A player always spawns a monster friendly to him
|
||||
mo.bFriendly = true;
|
||||
mo.A_SetFriendly(true);
|
||||
mo.SetFriendPlayer(originator.player);
|
||||
|
||||
Actor attacker=originator.player.attacker;
|
||||
|
|
|
@ -218,7 +218,7 @@ extend class Actor
|
|||
{
|
||||
if (target && IsFriend(target))
|
||||
{ // And I thought you were my friend!
|
||||
bFriendly = false;
|
||||
A_SetFriendly(false);
|
||||
}
|
||||
A_NoBlocking();
|
||||
A_PainShootSkull(spawntype, angle + 90);
|
||||
|
|
|
@ -118,7 +118,7 @@ class Acolyte : StrifeHumanoid
|
|||
void A_BeShadowyFoe()
|
||||
{
|
||||
A_SetRenderStyle(HR_SHADOW, STYLE_Translucent);
|
||||
bFriendly = false;
|
||||
A_SetFriendly(false);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
|
Loading…
Reference in a new issue