This commit is contained in:
aozhiwei 2020-07-09 17:16:36 +08:00
parent 7ff6939e15
commit ef95db5b83

View File

@ -2566,8 +2566,12 @@ void Room::NewBieRoomStart()
first_newbie_ = pair.second;
break;
}
int protect_time = MetaMgr::Instance()->level0room_robot_protect_time;
if (creator_game_times_ <= 0) {
protect_time = 6;
}
xtimer.AddDeadLineTimerAndAttach
(SERVER_FRAME_RATE * MetaMgr::Instance()->level0room_robot_protect_time,
(SERVER_FRAME_RATE * protect_time,
a8::XParams()
.SetSender(this),
[] (const a8::XParams& param)