stop sending all data to dead robots

This commit is contained in:
Fraser Graham 2013-11-18 22:48:55 -08:00
parent 4eb849a63f
commit 9ca442f10d

12
game.go
View File

@ -229,12 +229,12 @@ func (g *game) sendUpdate(payload *Boardstate) {
}
}
if living_robots == 0 {
player_payload.OtherRobots = payload.OtherRobots
player_payload.Projectiles = payload.Projectiles
player_payload.Splosions = payload.Splosions
player_payload.Objects = payload.Objects
}
// if living_robots == 0 {
// player_payload.OtherRobots = payload.OtherRobots
// player_payload.Projectiles = payload.Projectiles
// player_payload.Splosions = payload.Splosions
// player_payload.Objects = payload.Objects
// }
p.send <- player_payload
}