1
This commit is contained in:
parent
4dbc3cdc16
commit
7310f7a622
@ -885,7 +885,34 @@ void CallFuncBuff::SummonCarSpecPoint()
|
|||||||
float x = meta->GetBuffParam6(this);
|
float x = meta->GetBuffParam6(this);
|
||||||
float y = meta->GetBuffParam7(this);
|
float y = meta->GetBuffParam7(this);
|
||||||
float z = meta->GetBuffParam8(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
|
owner->room->xtimer.SetTimeoutWpEx
|
||||||
(
|
(
|
||||||
delay_time / FRAME_RATE_MS,
|
delay_time / FRAME_RATE_MS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user