mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 02:56:31 +00:00
[Client] Use simpler conditions for sending PlayerInventory packets
This fixes a problem with Take All not sending PlayerInventory packets.
This commit is contained in:
parent
3e881e6231
commit
bb5aa90a6d
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& itemPtr
|
||||||
|
|
||||||
Send an ID_PLAYER_INVENTORY packet every time an item gets added for a player here
|
Send an ID_PLAYER_INVENTORY packet every time an item gets added for a player here
|
||||||
*/
|
*/
|
||||||
if (actorPtr == player && this == &player.getClass().getContainerStore(player))
|
if (this == &player.getClass().getContainerStore(player))
|
||||||
{
|
{
|
||||||
mwmp::LocalPlayer *localPlayer = mwmp::Main::get().getLocalPlayer();
|
mwmp::LocalPlayer *localPlayer = mwmp::Main::get().getLocalPlayer();
|
||||||
|
|
||||||
|
@ -562,7 +562,7 @@ int MWWorld::ContainerStore::remove(const Ptr& item, int count, const Ptr& actor
|
||||||
*/
|
*/
|
||||||
Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||||
|
|
||||||
if (actor == player && this == &player.getClass().getContainerStore(player))
|
if (this == &player.getClass().getContainerStore(player))
|
||||||
{
|
{
|
||||||
mwmp::LocalPlayer *localPlayer = mwmp::Main::get().getLocalPlayer();
|
mwmp::LocalPlayer *localPlayer = mwmp::Main::get().getLocalPlayer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue