添加复活调试信息
This commit is contained in:
parent
eb14952e71
commit
1b294da213
@ -180,7 +180,15 @@ void Human::FillMFObjectFull(Room* room, cs::MFObjectFull* full_data)
|
|||||||
if (revive_timer) {
|
if (revive_timer) {
|
||||||
countdown = std::ceil(room->xtimer.GetRemainTime(revive_timer) / SERVER_FRAME_RATE);
|
countdown = std::ceil(room->xtimer.GetRemainTime(revive_timer) / SERVER_FRAME_RATE);
|
||||||
} else {
|
} else {
|
||||||
a8::UdpLog::Instance()->Warning("Human::FillMFObjectfull revive_timer == nullptr", {});
|
a8::UdpLog::Instance()->Warning("Human::FillMFObjectfull revive_timer == nullptr "
|
||||||
|
"dead_frameno:%d dead_times:%d alive_count:%d "
|
||||||
|
"room.frameno:%d",
|
||||||
|
{
|
||||||
|
dead_frameno,
|
||||||
|
dead_times,
|
||||||
|
room->AliveCount(),
|
||||||
|
room->frame_no
|
||||||
|
});
|
||||||
}
|
}
|
||||||
countdown = std::max(0, countdown - kReviveTimeAdd);
|
countdown = std::max(0, countdown - kReviveTimeAdd);
|
||||||
p->set_revive_countdown(countdown);
|
p->set_revive_countdown(countdown);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user