diff options
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index 946a283..6d51a09 100644 --- a/src/world.c +++ b/src/world.c @@ -233,11 +233,14 @@ void handleCollisionInWorld(Entity * entity1, Entity * entity2) { //if (entity2->id != 0) // entity2->health = 0.0; + + if (entity1->type != ENTITY_ANTIFA && entity2->type != ENTITY_ANTIFA) + setSoldatoLeader(entity1, entity2); + switch (entity1->type) { case ENTITY_ANTIFA: break; case ENTITY_SOLDATO: - setSoldatoLeader(entity1, entity2); break; case ENTITY_CAPORALE: break; |