This commit is contained in:
aozhiwei 2023-05-25 15:55:56 +08:00
parent 1d176d805d
commit ebd05face0

View File

@ -62,6 +62,7 @@
#include "mt/AirLine.h"
#include "mt/Robot.h"
#include "mt/SafeAreaPos.h"
#include "mt/MapThingGroup.h"
struct FrameCallNode
{
@ -3666,6 +3667,11 @@ void Room::CreateWorldObjects()
break;
}
}
for (auto& itr : GetMapMeta()->_group_world_objects) {
int ikey = itr.first;
auto objects = itr.second;
std::shuffle(objects.begin(), objects.end(), std::default_random_engine(a8::XGetTickCount()));
}
if (born_point_hash_.size() < 10) {
abort();
}