- changed most places where a player index is calculated by subtracting the player array's base access.
This commit is contained in:
parent
d358e401ee
commit
202f3d7d80
10 changed files with 27 additions and 25 deletions
|
|
@ -566,7 +566,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, RestoreDamage, RestoreDamage)
|
|||
|
||||
static int PlayerNumber(AActor *self)
|
||||
{
|
||||
return self->player ? int(self->player - players) : 0;
|
||||
return self->player ? self->Level->PlayerNum(self->player) : 0;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(AActor, PlayerNumber, PlayerNumber)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue