修复跳伞后穿墙问题

This commit is contained in:
aozhiwei 2021-03-26 17:11:14 +08:00
parent 4edd0168eb
commit c0ae456792
2 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,9 @@ void InternalShot(Creature* c,
return;
}
}
if (skill_id == 0) {
c->room->frame_event.AddShot(c);
}
for (auto& tuple : weapon_meta->bullet_born_offset) {
a8::Vec2 bullet_born_offset = a8::Vec2(std::get<0>(tuple), std::get<1>(tuple));
bullet_born_offset.Rotate(c->attack_dir.CalcAngle(a8::Vec2::UP));

View File

@ -2180,10 +2180,12 @@ void Room::NotifyGameStart()
if (buff_meta) {
for (auto& pair : room->human_hash_) {
a8::UnSetBitFlag(pair.second->status, HS_DisableAttack);
#if 0
pair.second->AddBuff(pair.second,
buff_meta,
1,
nullptr);
#endif
}
}
}