Add spawn points (#71)
Reviewed-on: #71 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #71.
This commit is contained in:
@@ -40,7 +40,12 @@ impl MatchState {
|
||||
|
||||
Self {
|
||||
elapsed_frames: 0,
|
||||
players: (0..config.players.len())
|
||||
players: (0..config
|
||||
.players
|
||||
.iter()
|
||||
.map(|player| player.handle)
|
||||
.max()
|
||||
.map_or(0, |handle| handle + 1))
|
||||
.map(|_| PlayerMatchState {
|
||||
stocks_remaining,
|
||||
score: 0,
|
||||
|
||||
Reference in New Issue
Block a user