This commit is contained in:
aozhiwei 2023-10-11 11:33:37 +08:00
parent bf8fbc6751
commit 480d309a59

View File

@ -3722,5 +3722,9 @@ bool Room::IsNewerMap()
int Room::GetMobaLeftTime()
{
return mt::Param::s().moba_revive_time - (GetFrameNo() * FRAME_RATE_MS / 1000);
if (moba_over_timer.expired()) {
return 0;
}
long long remain_time = xtimer.GetRemainTime(moba_over_timer);
return (remain_time * FRAME_RATE_MS / 1000);
}