mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 07:42:34 +00:00
Fixed crash when using menu to launch game (still crashes if an invalid spawnpoint is chosen)
This commit is contained in:
@@ -80,8 +80,8 @@ class IMICRTS
|
|||||||
save_playerdata
|
save_playerdata
|
||||||
|
|
||||||
players = [
|
players = [
|
||||||
{ id: 0, team: @player_team.value.to_i, spawnpoint: @map.spawnpoints.last, color: @player_color.value.to_sym },
|
{ id: 0, team: @player_team.value.to_i, spawnpoint: @player_position.value, color: @player_color.value.to_sym, bot: false },
|
||||||
{ id: 1, team: 2, spawnpoint: @map.spawnpoints.first, color: :lightblue }
|
{ id: 1, team: 2, spawnpoint: @player_position.value == "A" ? "B" : "A", color: :lightblue, bot: :brutal }
|
||||||
]
|
]
|
||||||
|
|
||||||
push_state(Game, networking_mode: :virtual, map: @map, players: players)
|
push_state(Game, networking_mode: :virtual, map: @map, players: players)
|
||||||
|
|||||||
Reference in New Issue
Block a user