mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
[Client] Send an ObjectDelete packet when disposing of corpses
This commit is contained in:
parent
26087a182d
commit
5bd95628ce
@ -363,6 +363,22 @@ namespace MWGui
|
|||||||
{
|
{
|
||||||
onTakeAllButtonClicked(mTakeButton);
|
onTakeAllButtonClicked(mTakeButton);
|
||||||
|
|
||||||
|
/*
|
||||||
|
Start of tes3mp addition
|
||||||
|
|
||||||
|
Send an ID_OBJECT_DELETE packet every time a corpse is disposed of
|
||||||
|
*/
|
||||||
|
if (!mPtr.getClass().isPersistent(mPtr))
|
||||||
|
{
|
||||||
|
mwmp::WorldEvent *worldEvent = mwmp::Main::get().getNetworking()->getWorldEvent();
|
||||||
|
worldEvent->reset();
|
||||||
|
worldEvent->addObjectDelete(mPtr);
|
||||||
|
worldEvent->sendObjectDelete();
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
End of tes3mp addition
|
||||||
|
*/
|
||||||
|
|
||||||
if (mPtr.getClass().isPersistent(mPtr))
|
if (mPtr.getClass().isPersistent(mPtr))
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sDisposeCorpseFail}");
|
MWBase::Environment::get().getWindowManager()->messageBox("#{sDisposeCorpseFail}");
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user