This commit is contained in:
aozhiwei 2023-01-01 14:54:07 +08:00
parent fe40049710
commit 260a52154d

View File

@ -304,12 +304,8 @@ void Buff::ProcSputteringFunc(Bullet* bullet)
for (int i = 0; i < meta->_param4_int_list.size(); ++i) {
glm::vec3 bullet_dir = GlmHelper::UP;
GlmHelper::RotateY(bullet_dir, meta->_param4_int_list[i] / 180.f);
// 999
#if 1
Position bullet_born_pos;
#else
a8::Vec2 bullet_born_pos = owner->GetPos() + bullet_dir * meta->param3;
#endif
Position bullet_born_pos = owner->GetPos();
bullet_born_pos.AddGlmVec3(bullet_dir * meta->_param3);
int bullet_uniid = owner->room->AllocUniid();
owner->room->frame_event.AddBullet
(bullet_uniid,