This commit is contained in:
aozhiwei 2021-10-26 10:26:42 +08:00
parent a05cebb887
commit b9e29a3dc9

View File

@ -715,18 +715,20 @@ void RoomObstacle::InstallPreExplostionSummonTimer()
[] (const a8::XParams& param) [] (const a8::XParams& param)
{ {
RoomObstacle* obstacle = (RoomObstacle*)param.sender.GetUserData(); RoomObstacle* obstacle = (RoomObstacle*)param.sender.GetUserData();
obstacle->room->CreateObstacle RoomObstacle* p = obstacle->room->CreateObstacle
( (
param.param1, param.param1,
obstacle->GetPos().x + param.param2.GetDouble(), obstacle->GetPos().x + param.param2.GetDouble(),
obstacle->GetPos().y + param.param3.GetDouble() obstacle->GetPos().y + param.param3.GetDouble()
); );
obstacle->Active(); if (p) {
p->Active();
}
}, },
&xtimer_attacher.timer_list_ &xtimer_attacher.timer_list_
); );
}//end for tuple }//end for tuple
base_time += meta->i->explosion_interval();
} }
base_time += meta->i->explosion_interval();
} }
} }