1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 03:45:32 +00:00

[Client] Disable clientside deletion of objects through console/scripts

Unfortunately, disabling clientside deletion of summons and items that can be picked up requires extra work on actors and inventories respectively, to avoid buggy situations.
This commit is contained in:
David Cernat 2018-07-08 00:39:07 +03:00
parent 8d9fde810e
commit acdaf1a282

View file

@ -773,7 +773,16 @@ namespace MWScript
End of tes3mp addition
*/
MWBase::Environment::get().getWorld()->deleteObject(ptr);
/*
Start of tes3mp change (major)
Disable unilateral deletion on this client and expect the server's reply to our
packet to do it instead
*/
//MWBase::Environment::get().getWorld()->deleteObject(ptr);
/*
End of tes3mp change (major)
*/
}
else if (parameter == 0)
MWBase::Environment::get().getWorld()->undeleteObject(ptr);