修复宕机问题
This commit is contained in:
parent
c8f8d38ede
commit
abf4d4ef70
@ -3521,7 +3521,7 @@ void Human::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
MetaMgr::Instance()->GetEquipUpgrade(weapon_meta->i->id());
|
||||
MetaData::Equip* bullet_meta =
|
||||
MetaMgr::Instance()->GetEquip(weapon_meta->i->use_bullet());
|
||||
if (bullet_meta) {
|
||||
if (bullet_meta && target_distance > 0.00001f) {
|
||||
a8::Vec2 old_attack_dir = attack_dir;
|
||||
attack_dir = entity->GetPos() - GetPos();
|
||||
attack_dir.Normalize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user