P_IsLocalPlayer: Fix returning whether consoleplayer was in consoleplayer's party (ie, always true) instead of actual requested player.

Fixes replacement music applying when bots use powerup items.
This commit is contained in:
toaster 2023-04-02 17:43:02 +01:00
parent 0774cd2c80
commit b2969af84f

View file

@ -1157,7 +1157,7 @@ boolean P_IsLocalPlayer(player_t *player)
return false;
// handles both online parties and local players (no need to call P_IsMachineLocalPlayer here)
return G_IsPartyLocal(consoleplayer);
return G_IsPartyLocal(player-players);
}
//