Masquage de la position de la joueuse adverse si on est poursuiveuse

This commit is contained in:
Emmy D'Anello 2024-12-16 18:43:10 +01:00
parent a8182befe5
commit 29c0a234d1
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -54,6 +54,7 @@ function PlayerLocationsMarkers() {
const game = useGame() const game = useGame()
const lastPlayerLocations = useLastPlayerLocations() const lastPlayerLocations = useLastPlayerLocations()
return lastPlayerLocations ? lastPlayerLocations return lastPlayerLocations ? lastPlayerLocations
.filter(() => game.currentRunner === true || !game.gameStarted)
.filter(playerLoc => playerLoc.playerId !== game.playerId) .filter(playerLoc => playerLoc.playerId !== game.playerId)
.map(playerLoc => <PlayerLocationMarker key={`player-${playerLoc.playerId}-loc`} playerLocation={playerLoc} />) : <></> .map(playerLoc => <PlayerLocationMarker key={`player-${playerLoc.playerId}-loc`} playerLocation={playerLoc} />) : <></>
} }