simplified some loops

These changes were done by running the following command:

    gofmt -s -w *.go
This commit is contained in:
sm
2013-11-09 21:52:06 -08:00
parent bc2d1cdd52
commit da26e1ca46
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -311,7 +311,7 @@ func (r *Robot) Tick(g *game) {
func (r *Robot) scan(g *game) {
r.Scanners = r.Scanners[:0]
for player, _ := range g.players {
for player := range g.players {
for _, bot := range player.Robots {
if bot.Id == r.Id || bot.Health <= 0 {
continue
@@ -327,7 +327,7 @@ func (r *Robot) scan(g *game) {
}
}
for proj, _ := range g.projectiles {
for proj := range g.projectiles {
if proj.Owner == r {
continue
}