self shots are still suicides

This commit is contained in:
Fraser Graham 2014-01-23 21:20:43 -08:00
parent 7bb5ae59b3
commit dce3f15c4c

View File

@ -100,7 +100,11 @@ func (p *Projectile) Tick(g *game) {
p.Owner.gameStats.Hits++ p.Owner.gameStats.Hits++
if r.Health <= 0 { if r.Health <= 0 {
r.gameStats.Deaths++ r.gameStats.Deaths++
p.Owner.gameStats.Kills++ if r == p.Owner {
p.Owner.gameStats.Suicides++
} else {
p.Owner.gameStats.Kills++
}
} }
} }
} }