forked from mirror/openmw-tes3mp
[General] Fix logic issues related to ActorEquipment
This commit is contained in:
parent
cdfc2db2d1
commit
311ce4119d
2 changed files with 5 additions and 4 deletions
|
@ -242,6 +242,7 @@ void LocalActor::updateEquipment(bool forceUpdate)
|
||||||
if (equipmentChanged)
|
if (equipmentChanged)
|
||||||
{
|
{
|
||||||
mwmp::Main::get().getNetworking()->getActorList()->addEquipmentActor(*this);
|
mwmp::Main::get().getNetworking()->getActorList()->addEquipmentActor(*this);
|
||||||
|
equipmentChanged = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,11 @@ void PacketActorEquipment::Packet(RakNet::BitStream *bs, bool send)
|
||||||
RW(actor.refNumIndex, send);
|
RW(actor.refNumIndex, send);
|
||||||
RW(actor.mpNum, send);
|
RW(actor.mpNum, send);
|
||||||
|
|
||||||
for (int i = 0; i < 19; i++)
|
for (int j = 0; j < 19; j++)
|
||||||
{
|
{
|
||||||
RW(actor.equipedItems[i].refId, send);
|
RW(actor.equipedItems[j].refId, send);
|
||||||
RW(actor.equipedItems[i].count, send);
|
RW(actor.equipedItems[j].count, send);
|
||||||
RW(actor.equipedItems[i].charge, send);
|
RW(actor.equipedItems[j].charge, send);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!send)
|
if (!send)
|
||||||
|
|
Loading…
Reference in a new issue