race quit, transfer state, refactor
This commit is contained in:
@@ -118,6 +118,10 @@ func buildGameOnMap(races []string, m generator.Map) (*game.Game, error) {
|
||||
gameMap.Planet[i].Number, gameMap.Planet[j].Number = gameMap.Planet[j].Number, gameMap.Planet[i].Number
|
||||
})
|
||||
|
||||
for i := range gameMap.Planet {
|
||||
g.Votes = g.Votes.Add(gameMap.Planet[i].Votes())
|
||||
}
|
||||
|
||||
g.Map = *gameMap
|
||||
|
||||
return g, nil
|
||||
|
||||
Reference in New Issue
Block a user