stop sending all data to dead robots
This commit is contained in:
parent
4eb849a63f
commit
9ca442f10d
12
game.go
12
game.go
@ -229,12 +229,12 @@ func (g *game) sendUpdate(payload *Boardstate) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if living_robots == 0 {
|
// if living_robots == 0 {
|
||||||
player_payload.OtherRobots = payload.OtherRobots
|
// player_payload.OtherRobots = payload.OtherRobots
|
||||||
player_payload.Projectiles = payload.Projectiles
|
// player_payload.Projectiles = payload.Projectiles
|
||||||
player_payload.Splosions = payload.Splosions
|
// player_payload.Splosions = payload.Splosions
|
||||||
player_payload.Objects = payload.Objects
|
// player_payload.Objects = payload.Objects
|
||||||
}
|
// }
|
||||||
|
|
||||||
p.send <- player_payload
|
p.send <- player_payload
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user