WIP respawning.

This commit is contained in:
William Moberg
2016-02-11 16:08:19 +01:00
parent c3cc5ae70b
commit 8eea0c8395
7 changed files with 101 additions and 128 deletions
+2 -2
View File
@@ -57,10 +57,10 @@ bool SoundSystem::OnInputCommand(const Events::InputCommand & e)
return true;
}
}
if (e.Command == "TakeDamage" && e.Value > 0) {
if (e.Command == "TakeDamage" && e.Value > 0 && m_LocalPlayer.Valid()) {
Events::PlayerDamage ev;
ev.Player = m_LocalPlayer;
ev.Damage = 1.0;
ev.Damage = e.Value;
m_EventBroker->Publish(ev);
}