aboutsummaryrefslogtreecommitdiff
path: root/src/entity.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/entity.c
parent36f6241dc874c95d7494cf739b7947e7a9541b51 (diff)
Better soldato following
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 0757109..f4c3747 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -59,6 +59,10 @@ Entity createEntity(EntityType type, Game * game) {
.updateCb = info.updateCb,
.drawCb = info.drawCb,
.health = ENTITY_MAX_HEALTH,
+ .follow = (EntityFollow){
+ .leaderId = ENTITY_NONE,
+ .followerId = ENTITY_NONE
+ },
.collision.hit = false,
.data = NULL
};