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:
parent
8d9fde810e
commit
acdaf1a282
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue