添加飞行优化
This commit is contained in:
parent
568e49ff38
commit
59541f5bb7
@ -16,6 +16,11 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
|
|||||||
TypeConvert::ToPb(room->plane.end_point, p->mutable_end_point());
|
TypeConvert::ToPb(room->plane.end_point, p->mutable_end_point());
|
||||||
}
|
}
|
||||||
for (auto& itr : hum->new_objects) {
|
for (auto& itr : hum->new_objects) {
|
||||||
|
if (itr != hum &&
|
||||||
|
itr->entity_type == ET_Player &&
|
||||||
|
a8::HasBitFlag(((Human*)itr)->status, HS_Fly)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
itr->FillMFObjectFull(msg->add_full_objects());
|
itr->FillMFObjectFull(msg->add_full_objects());
|
||||||
}
|
}
|
||||||
for (auto& itr : hum->part_objects) {
|
for (auto& itr : hum->part_objects) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user