From f6dc479873edc98704dcf1ffb116ba5da03805b2 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Wed, 26 Jul 2023 03:03:20 -0600 Subject: Better soldato following --- src/world.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/world.c') 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; -- cgit v1.2.3