From b490cfc22800bba7a629e92807b713d4643a58b5 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Thu, 7 Nov 2013 22:05:38 -0800 Subject: [PATCH] made it so bots start inside world --- player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player.go b/player.go index beacb02..2dd25c4 100644 --- a/player.go +++ b/player.go @@ -292,8 +292,8 @@ func (p *player) fire(projectiles map[*Projectile]bool, turn int) *Projectile { func (p *player) reset(g *game) { for { start_pos := v.Point2d{ - X: rand.Float32() * float32(*width), - Y: rand.Float32() * float32(*height), + X: rand.Float32() * float32(g.width), + Y: rand.Float32() * float32(g.height), } p.Robot.MoveTo = &start_pos p.Robot.Position = start_pos