Tweak building health, fix damage dealing
This commit is contained in:
@@ -67,7 +67,7 @@ void damageEvent(ecs_entity_t entity, DamageEvent event) {
|
||||
ecs_remove(ECS, entity, Health);
|
||||
ecs_remove(ECS, entity, Unit);
|
||||
ecs_remove(ECS, entity, Building);
|
||||
} else {
|
||||
} else if (health->hp <= 0){
|
||||
// No animation, delete right away
|
||||
ecs_delete(ECS, entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user