1
This commit is contained in:
parent
de35a27a92
commit
53be6a55f5
@ -198,9 +198,14 @@ void FrameMaker::SerializeNewObjects(cs::SMUpdate* msg, Room* room, Human* hum,
|
|||||||
((Human*)e)->HasBuffEffect(kBET_Fly)){
|
((Human*)e)->HasBuffEffect(kBET_Fly)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
bool sync = false;
|
||||||
if ((hum->IsPlayer() || hum->HasObserver()) && e->CanSeeMe(hum)) {
|
if ((hum->IsPlayer() || hum->HasObserver()) && e->CanSeeMe(hum)) {
|
||||||
|
sync = true;
|
||||||
e->FillMFObjectFull(room, (Human*)hum, msg->add_full_objects());
|
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
|
#ifdef DEBUG
|
||||||
if (App::Instance()->HasFlag(2) && e->GetEntityType() == ET_Player) {
|
if (App::Instance()->HasFlag(2) && e->GetEntityType() == ET_Player) {
|
||||||
hum->room->BroadcastDebugMsg(a8::Format("投放 %d pos:%d,%d 出现",
|
hum->room->BroadcastDebugMsg(a8::Format("投放 %d pos:%d,%d 出现",
|
||||||
|
@ -856,7 +856,7 @@ void Human::DoJump()
|
|||||||
jump_frameno_ = room->GetFrameNo();
|
jump_frameno_ = room->GetFrameNo();
|
||||||
SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
a8::XPrintf("DoJump\n", {});
|
a8::XPrintf("DoJump pos:%f,%f,%f\n", {GetPos().GetX(), GetPos().y, GetPos().z});
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user