diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-10-06 23:18:20 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-10-06 23:18:20 -0600 |
commit | 71f748a76ef0b86b6377ea82cb2e7e785d28b647 (patch) | |
tree | b66c022e3a9d74600f165f04f08a2f4d2f66f339 /src/entities/soldato.c | |
parent | a3e1d468a46f2f463500ccbec042e96350f74475 (diff) |
Fixed issues I should have fixed a while ago
Diffstat (limited to 'src/entities/soldato.c')
-rw-r--r-- | src/entities/soldato.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entities/soldato.c b/src/entities/soldato.c index 2122a5a..4230177 100644 --- a/src/entities/soldato.c +++ b/src/entities/soldato.c @@ -200,6 +200,10 @@ void setSoldatoLeader(Entity * entity1, Entity * entity2) { // Already has leader. if (follower->follow.leaderId != ENTITY_NONE) return; + // Stops funny thingy. + if (follower->follow.followerFingerprint == leader->fingerprint + || leader->follow.leaderFingerprint == follower->fingerprint) + return; follower->follow.leaderId = leader->id; follower->follow.leaderFingerprint = leader->fingerprint; |