This commit is contained in:
aozhiwei 2020-07-07 11:10:08 +08:00
parent 3ce9e75986
commit cb1613d162

View File

@ -27,6 +27,9 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
continue;
} else {
}
if (((Human*)hum)->GetPos().ManhattanDistance(entity->GetPos()) > VIEW_RANGE) {
continue;
}
entity->FillMFObjectPart(room, (Human*)hum, msg->add_part_objects());
}
for (auto& itr : hum->del_objects) {