- Exhumed: Store the player's index within the player's struct.

This commit is contained in:
Mitchell Richters 2023-03-23 19:14:26 +11:00
parent 645d75ba0b
commit 27144c0bc3
2 changed files with 3 additions and 0 deletions

View file

@ -254,6 +254,8 @@ void RestartPlayer(int nPlayer)
DExhumedActor* floorsprt; DExhumedActor* floorsprt;
plr->nPlayer = nPlayer;
if (pActor) if (pActor)
{ {
runlist_DoSubRunRec(pActor->spr.intowner); runlist_DoSubRunRec(pActor->spr.intowner);

View file

@ -100,6 +100,7 @@ struct Player
uint16_t nPlayerWeapons; // each set bit represents a weapon the player has uint16_t nPlayerWeapons; // each set bit represents a weapon the player has
int16_t dVertPan; int16_t dVertPan;
double nQuake; double nQuake;
uint8_t nPlayer;
PlayerSave sPlayerSave; PlayerSave sPlayerSave;
int ototalvel; int ototalvel;
int totalvel; int totalvel;