diff options
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; |