1
This commit is contained in:
parent
7ff6939e15
commit
ef95db5b83
@ -2566,8 +2566,12 @@ void Room::NewBieRoomStart()
|
|||||||
first_newbie_ = pair.second;
|
first_newbie_ = pair.second;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
int protect_time = MetaMgr::Instance()->level0room_robot_protect_time;
|
||||||
|
if (creator_game_times_ <= 0) {
|
||||||
|
protect_time = 6;
|
||||||
|
}
|
||||||
xtimer.AddDeadLineTimerAndAttach
|
xtimer.AddDeadLineTimerAndAttach
|
||||||
(SERVER_FRAME_RATE * MetaMgr::Instance()->level0room_robot_protect_time,
|
(SERVER_FRAME_RATE * protect_time,
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
.SetSender(this),
|
.SetSender(this),
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user