This commit is contained in:
aozhiwei 2021-06-02 11:38:16 +08:00
commit 63d9b426aa

View File

@ -291,7 +291,14 @@ void Obstacle::Explosion(Bullet* bullet)
} }
}); });
a8::Vec2 bomb_pos = GetPos(); a8::Vec2 bomb_pos = GetPos();
#if 1
room->frame_event.AddExplosionEx(bullet->sender,
meta->i->thing_id(),
bomb_pos,
meta->i->explosion_effect());
#else
room->frame_event.AddExplosion(bullet, meta->i->thing_id(), bomb_pos); room->frame_event.AddExplosion(bullet, meta->i->thing_id(), bomb_pos);
#endif
for (auto& target : objects) { for (auto& target : objects) {
switch (target->GetEntityType()) { switch (target->GetEntityType()) {
case ET_Player: case ET_Player: