mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 12:56:33 +00:00
[Client] Make peace between players who become allies and their followers
This commit is contained in:
parent
21df69d78a
commit
b8839e87c8
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include "../PlayerProcessor.hpp"
|
#include "../PlayerProcessor.hpp"
|
||||||
#include "apps/openmw/mwmp/Main.hpp"
|
#include "apps/openmw/mwmp/Main.hpp"
|
||||||
#include "apps/openmw/mwmp/LocalPlayer.hpp"
|
#include "apps/openmw/mwmp/LocalPlayer.hpp"
|
||||||
|
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
||||||
|
|
||||||
namespace mwmp
|
namespace mwmp
|
||||||
{
|
{
|
||||||
|
@ -30,6 +31,7 @@ namespace mwmp
|
||||||
if (dedicatedPlayer)
|
if (dedicatedPlayer)
|
||||||
{
|
{
|
||||||
LOG_APPEND(TimedLog::LOG_INFO, "- Adding DedicatedPlayer %s to our allied players", dedicatedPlayer->npc.mName.c_str());
|
LOG_APPEND(TimedLog::LOG_INFO, "- Adding DedicatedPlayer %s to our allied players", dedicatedPlayer->npc.mName.c_str());
|
||||||
|
MechanicsHelper::makePeace(localPlayer->getPlayerPtr(), dedicatedPlayer->getPtr());
|
||||||
}
|
}
|
||||||
|
|
||||||
++iter;
|
++iter;
|
||||||
|
@ -52,6 +54,7 @@ namespace mwmp
|
||||||
if (otherDedicatedPlayer)
|
if (otherDedicatedPlayer)
|
||||||
{
|
{
|
||||||
LOG_APPEND(TimedLog::LOG_INFO, "- Adding DedicatedPlayer %s to their allied players", otherDedicatedPlayer->npc.mName.c_str());
|
LOG_APPEND(TimedLog::LOG_INFO, "- Adding DedicatedPlayer %s to their allied players", otherDedicatedPlayer->npc.mName.c_str());
|
||||||
|
MechanicsHelper::makePeace(static_cast<DedicatedPlayer*>(player)->getPtr(), otherDedicatedPlayer->getPtr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue