1
This commit is contained in:
parent
109aefcc31
commit
95206e40a7
@ -224,6 +224,10 @@ void Room::ShuaAndroid()
|
||||
int refresh_time = a8::RandEx(MetaMgr::Instance()->refresh_robot_min_time,
|
||||
MetaMgr::Instance()->refresh_robot_max_time);
|
||||
if (robot_num > 0 && refresh_time > 0) {
|
||||
if (IsMiniRoom()) {
|
||||
robot_num /= 2;
|
||||
robot_num = std::max(1, robot_num);
|
||||
}
|
||||
CreateAndroid(robot_num);
|
||||
xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * refresh_time,
|
||||
a8::XParams()
|
||||
|
Loading…
x
Reference in New Issue
Block a user