1
This commit is contained in:
parent
b878c5ab41
commit
e1b05b6dee
@ -18,15 +18,12 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
|
||||
}
|
||||
#endif
|
||||
for (auto& itr : hum->new_objects) {
|
||||
#if 0
|
||||
if (itr != hum &&
|
||||
itr->entity_type == ET_Player &&
|
||||
a8::HasBitFlag(((Human*)
|
||||
) {
|
||||
continue;
|
||||
#ifdef DEBUG
|
||||
if (hum->del_objects.find(itr->GetEntityUniId()) != hum->del_objects.end()) {
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
itr->FillMFObjectFull(room, msg->add_full_objects());
|
||||
itr->FillMFObjectFull(room, msg->add_full_objects());
|
||||
}
|
||||
for (auto& itr : hum->part_objects) {
|
||||
Entity* entity = itr;
|
||||
|
@ -667,8 +667,9 @@ void Human::SyncAroundPlayers(const char* file, int line, const char* func)
|
||||
}
|
||||
#ifdef DEBUG
|
||||
room->CheckPartObjects();
|
||||
a8::UdpLog::Instance()->Debug("syncaround begin %s %d %s",
|
||||
a8::UdpLog::Instance()->Debug("room_idx:%d syncaround begin %s %d %s",
|
||||
{
|
||||
room->GetRoomIdx(),
|
||||
file,
|
||||
line,
|
||||
func
|
||||
@ -702,12 +703,14 @@ void Human::SyncAroundPlayers(const char* file, int line, const char* func)
|
||||
static long long last_debugout_tick = 0;
|
||||
if (a8::XGetTickCount() - last_debugout_tick > 1000 * 10) {
|
||||
last_debugout_tick = a8::XGetTickCount();
|
||||
a8::UdpLog::Instance()->Warning("SyncAroundPlayers error file:%s line:%d func:%s",
|
||||
{
|
||||
file,
|
||||
line,
|
||||
func
|
||||
});
|
||||
a8::UdpLog::Instance()->Warning
|
||||
("SyncAroundPlayers error room_idx:%d, file:%s line:%d func:%s",
|
||||
{
|
||||
room->GetRoomIdx(),
|
||||
file,
|
||||
line,
|
||||
func
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -483,6 +483,16 @@ void Room::RemoveObjectLater(RoomEntity* entity)
|
||||
break;
|
||||
}
|
||||
entity->room->RemoveFromEntityHash(entity);
|
||||
#ifdef DEBUG
|
||||
a8::UdpLog::Instance()->Debug
|
||||
(
|
||||
"remove object pointer:%d uniid:%d",
|
||||
{
|
||||
(long long)entity,
|
||||
entity->GetEntityUniId()
|
||||
}
|
||||
);
|
||||
#endif
|
||||
delete entity;
|
||||
};
|
||||
xtimer.AddDeadLineTimerAndAttach(0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user