This commit is contained in:
aozhiwei 2023-06-17 11:35:03 +08:00
parent 4dbc3cdc16
commit 7310f7a622

View File

@ -885,7 +885,34 @@ void CallFuncBuff::SummonCarSpecPoint()
float x = meta->GetBuffParam6(this);
float y = meta->GetBuffParam7(this);
float z = meta->GetBuffParam8(this);
auto special_operators = std::make_shared<std::set<int>>();
std::shared_ptr<std::set<int>> special_operators;
switch (oper_type) {
case 1:
{
special_operators = std::make_shared<std::set<int>>();
special_operators->insert(oper);
}
break;
case 2:
{
Team* team = owner->room->GetTeam(oper);
if (team) {
special_operators = std::make_shared<std::set<int>>();
team->TraverseMembers
(
[special_operators] (Human* hum)
{
special_operators->insert(hum->GetUniId());
return true;
});
}
}
break;
default:
{
}
break;
}
owner->room->xtimer.SetTimeoutWpEx
(
delay_time / FRAME_RATE_MS,