- Added AActor::SetFriendPlayer() to make setting FriendPlayer cleaner to read when doing it with
a player_t pointer. SVN r3681 (trunk)
This commit is contained in:
parent
2c6763d750
commit
086d0a797e
8 changed files with 28 additions and 49 deletions
|
|
@ -100,7 +100,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Beacon)
|
|||
{
|
||||
rebel->Translation = owner->Translation;
|
||||
}
|
||||
rebel->FriendPlayer = owner->player != NULL ? BYTE(owner->player - players + 1) : 0;
|
||||
rebel->SetFriendPlayer(owner->player);
|
||||
// Set the rebel's target to whatever last hurt the player, so long as it's not
|
||||
// one of the player's other rebels.
|
||||
if (owner->target != NULL && !rebel->IsFriend (owner->target))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue