aboutsummaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-07-26 03:03:20 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-07-26 03:03:20 -0600
commitf6dc479873edc98704dcf1ffb116ba5da03805b2 (patch)
tree6da0020b31e86c400e2b8227567c60e59fa4961c /src/world.c
parent36f6241dc874c95d7494cf739b7947e7a9541b51 (diff)
Better soldato following
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c5
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;