This commit is contained in:
aozhiwei 2023-01-04 15:35:56 +08:00
parent de35a27a92
commit 53be6a55f5
2 changed files with 6 additions and 1 deletions

View File

@ -198,9 +198,14 @@ void FrameMaker::SerializeNewObjects(cs::SMUpdate* msg, Room* room, Human* hum,
((Human*)e)->HasBuffEffect(kBET_Fly)){
continue;
}
bool sync = false;
if ((hum->IsPlayer() || hum->HasObserver()) && e->CanSeeMe(hum)) {
sync = true;
e->FillMFObjectFull(room, (Human*)hum, msg->add_full_objects());
}
#ifdef DEBUG
a8::XPrintf("add full object can_see:%d sync:%d type:%d\n", {e->CanSeeMe(hum), sync, hum->IsPlayer()});
#endif
#ifdef DEBUG
if (App::Instance()->HasFlag(2) && e->GetEntityType() == ET_Player) {
hum->room->BroadcastDebugMsg(a8::Format("投放 %d pos:%d,%d 出现",

View File

@ -856,7 +856,7 @@ void Human::DoJump()
jump_frameno_ = room->GetFrameNo();
SyncAroundPlayers(__FILE__, __LINE__, __func__);
#ifdef DEBUG
a8::XPrintf("DoJump\n", {});
a8::XPrintf("DoJump pos:%f,%f,%f\n", {GetPos().GetX(), GetPos().y, GetPos().z});
#endif
}
}