1
This commit is contained in:
parent
0922f7e846
commit
8a3e8dfb95
@ -1674,20 +1674,16 @@ namespace MetaData
|
|||||||
std::vector<std::string> strings;
|
std::vector<std::string> strings;
|
||||||
a8::Split(pb->area(), strings, '|');
|
a8::Split(pb->area(), strings, '|');
|
||||||
for (auto& str : strings) {
|
for (auto& str : strings) {
|
||||||
std::vector<std::string> strings2;
|
MetaData::SafeArea* p = MetaMgr::Instance()->GetSafeArea(a8::XValue(str));
|
||||||
a8::Split(str, strings2, ':');
|
if (!p) {
|
||||||
if (strings2.size() != 3) {
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
area.push_back(std::make_tuple
|
area.push_back(p);
|
||||||
(
|
|
||||||
(float)a8::XValue(strings2[0]).GetDouble(),
|
|
||||||
(float)a8::XValue(strings2[1]).GetDouble(),
|
|
||||||
(int)a8::XValue(strings2[2]).GetInt()
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (area.empty()) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
waves.resize(mode_time.size());
|
waves.resize(mode_time.size());
|
||||||
for (auto& content : *MetaMgr::Instance()->GetPveGeminiContents(pb->id())) {
|
for (auto& content : *MetaMgr::Instance()->GetPveGeminiContents(pb->id())) {
|
||||||
if (content.pb->round() <= 0 ||
|
if (content.pb->round() <= 0 ||
|
||||||
|
@ -412,7 +412,7 @@ namespace MetaData
|
|||||||
{
|
{
|
||||||
const metatable::PveGeminiMode* pb = nullptr;
|
const metatable::PveGeminiMode* pb = nullptr;
|
||||||
std::vector<int> mode_time;
|
std::vector<int> mode_time;
|
||||||
std::vector<std::tuple<float, float, int>> area;
|
std::vector<MetaData::SafeArea*> area;
|
||||||
std::vector<std::vector<PveGeminiContent*>> waves;
|
std::vector<std::vector<PveGeminiContent*>> waves;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -1302,6 +1302,9 @@ void Room::UpdateGasInactivePve()
|
|||||||
NotifyUiUpdate();
|
NotifyUiUpdate();
|
||||||
ClearPostBattleAutoFreeList();
|
ClearPostBattleAutoFreeList();
|
||||||
OnBattleStart();
|
OnBattleStart();
|
||||||
|
if (IsSurvivalRoom()) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Room::UpdateGasWaiting()
|
void Room::UpdateGasWaiting()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user