Skip to content

Commit

Permalink
Revert "Followerslots fix"
Browse files Browse the repository at this point in the history
This reverts commit fa87433.
  • Loading branch information
GladieUO authored and cbnolok committed Aug 6, 2024
1 parent a6bad2f commit 2522987
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/game/chars/CCharUse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,18 +1209,10 @@ bool CChar::FollowersUpdate( CChar * pChar, short iFollowerSlots, bool fCheckOnl
++it;
}

if (!fExists && ((short)(m_followers.size()) + iFollowerSlots <= iMaxFollower || IsPriv(PRIV_GM)))
if (!fExists && ((short)(m_followers.size()) < iMaxFollower || IsPriv(PRIV_GM)))
{
if (!fCheckOnly)
{
for (short i = 0; i < iFollowerSlots; ++i)
{
m_followers.emplace_back(pChar->GetUID());
}
short iCurFollower = (short)(GetDefNum("CURFOLLOWER", true));
iCurFollower += iFollowerSlots;
SetDefNum("CURFOLLOWER", maximum(iCurFollower, 0));
}
m_followers.emplace_back(pChar->GetUID());
}
else
return false;
Expand Down

0 comments on commit 2522987

Please sign in to comment.