1
This commit is contained in:
parent
e5d8165c12
commit
84d3205dfd
@ -772,6 +772,7 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
|
|||||||
if (!revive_timer.expired()) {
|
if (!revive_timer.expired()) {
|
||||||
countdown = std::ceil(room->xtimer.GetRemainTime(revive_timer) / SERVER_FRAME_RATE);
|
countdown = std::ceil(room->xtimer.GetRemainTime(revive_timer) / SERVER_FRAME_RATE);
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef MYDEBUG
|
||||||
f8::UdpLog::Instance()->Warning
|
f8::UdpLog::Instance()->Warning
|
||||||
("Human::FillMFObjectfull revive_timer == nullptr "
|
("Human::FillMFObjectfull revive_timer == nullptr "
|
||||||
"dead_frameno:%d dead_times:%d alive_count:%d "
|
"dead_frameno:%d dead_times:%d alive_count:%d "
|
||||||
@ -782,6 +783,7 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
|
|||||||
room->AliveCount(),
|
room->AliveCount(),
|
||||||
room->GetFrameNo()
|
room->GetFrameNo()
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
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