Merge branch 'fixes' into main/atys-live

feature/core4-atys
Nuno 3 years ago committed by kaetemi
parent 5141435cdf
commit 890eea4aad
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -916,7 +916,10 @@ void CFameManager::addFameIndexed(const CEntityId &entityId, uint32 faction, sin
if( pGuild != 0 )
{
if( pGuild->getMemberCount() > 0 ) // guild with zero members must never occurs
addFameIndexed( pGuild->getEId(), faction, deltaFame / pGuild->getMemberCount(), serviceName, propagate, propagationType );
{
if (deltaFame > 0) // Ulukyn: Only increase guild fame, never decrease it for now (btw guild fame are useless lol)
addFameIndexed( pGuild->getEId(), faction, deltaFame / pGuild->getMemberCount(), serviceName, propagate, propagationType );
}
else
nlwarning("Guild %d have no member (getMemberCount() return 0)", c->getGuildId());
}

Loading…
Cancel
Save