infinite melee!!

This commit is contained in:
Stephen McQuay 2013-09-28 13:19:44 -07:00
parent 56c965add7
commit 83da3961cd
2 changed files with 1 additions and 5 deletions

View File

@ -147,8 +147,7 @@ func (g *game) run() {
for p := range g.players {
if p.Robot.Health > 0 {
log.Printf("Robot %v Wins", p.Robot.Id)
log.Printf("game over: %+v", g)
return
log.Printf("game %s: game over", g.id)
}
p.reset()
}

View File

@ -50,9 +50,6 @@ func (p *player) recv() {
if msg.Stats.Speed > 0 {
p.Robot.Stats = msg.Stats
log.Printf("%v\n", msg.Stats)
p.Robot.Health = p.Robot.Stats.Hp
p.Robot.Speed = 0
p.Robot.TargetSpeed = p.Robot.Stats.Speed