more fixing and cleanup

This commit is contained in:
DarthArgus
2015-10-13 20:49:42 -05:00
parent 0775701e48
commit b61c932498
10 changed files with 13 additions and 117 deletions
@@ -4156,11 +4156,13 @@ void ServerObject::performCombatSpam (const MessageQueueCombatSpam & spamMsg, bo
if (sendToTarget && !sendToBystanders)
{
ServerObject * const target = safe_cast<ServerObject *>(NetworkIdManager::getObjectById(spamMsg.m_defender));
if (target)
if (target->getNetworkId() != spamMsg.m_attacker)
if (target) {
if (target->getNetworkId() != spamMsg.m_attacker) {
target->seeCombatSpam (spamMsg);
else
}
} else {
WARNING_STRICT_FATAL (!sendToSelf && !sendToBystanders, ("null target_obj in commandFuncCombatSpam, when sendToTarget was set true"));
}
}
if (sendToBystanders)