Fixed in client for shoot event. Weapon system now damages health on any target not only players.

This commit is contained in:
Jocke
2016-01-24 11:36:01 +01:00
parent a28748b35d
commit 97d70f8e32
4 changed files with 6 additions and 6 deletions
-1
View File
@@ -12,7 +12,6 @@ HealthSystem::HealthSystem(World* m_World, EventBroker* eventBroker)
void HealthSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt)
{
//if entityID of health is 9 then the players ID is also 9 (player,health are connected to the same entity)
ComponentWrapper player = m_World->GetComponent(component.EntityID, "Player");
double maxHealth = (double)component["MaxHealth"];
//process the DeltaHealthVector and change the entitys health accordingly