Masquage de la position de la joueuse adverse si on est poursuiveuse
This commit is contained in:
parent
a8182befe5
commit
29c0a234d1
@ -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} />) : <></>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user