Merge branch 'master' of ssh://bitbucket.org/hackerbots/botserv
This commit is contained in:
commit
0698f21a0f
@ -100,11 +100,15 @@ func (p *Projectile) Tick(g *game) {
|
||||
p.Owner.gameStats.Hits++
|
||||
if r.Health <= 0 {
|
||||
r.gameStats.Deaths++
|
||||
if r == p.Owner {
|
||||
p.Owner.gameStats.Suicides++
|
||||
} else {
|
||||
p.Owner.gameStats.Kills++
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
p.Position.X = newPos.X
|
||||
p.Position.Y = newPos.Y
|
||||
|
Loading…
Reference in New Issue
Block a user