1
This commit is contained in:
parent
5c65a4b41b
commit
c25bb87fc1
@ -99,12 +99,12 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
|
||||
for (size_t idx : hum->chged_inventorys_) {
|
||||
if (idx < room->frame_event.chged_inventorys_.size()) {
|
||||
Human* target = room->frame_event.chged_inventorys_[idx];
|
||||
{
|
||||
if (target->curr_weapon) {
|
||||
auto p = msg->add_chged_property_list();
|
||||
p->set_obj_id(target->entity_uniid);
|
||||
p->set_property_type(kPropInventory);
|
||||
p->set_property_subtype(kWEAPON_SLOT);
|
||||
p->set_value(target->GetInventory(kWEAPON_SLOT));
|
||||
p->set_value(target->curr_weapon->ammo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user