fixed initial position bug

This commit is contained in:
sm
2013-08-19 23:25:08 -07:00
parent 7e3404095a
commit 7997b15c26
2 changed files with 3 additions and 9 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ func (p *player) fire() {
func (p *player) reset() {
start_pos := v.Point2d{
X: rand.Float64() * 800,
Y: rand.Float64() * 550,
X: rand.Float64() * *width,
Y: rand.Float64() * *height,
}
p.Robot.MoveTo = start_pos
p.Robot.Position = start_pos