This commit is contained in:
aozhiwei 2021-05-10 17:22:59 +08:00
parent 51677255fa
commit ebf1e123e9
2 changed files with 2 additions and 2 deletions

View File

@ -1193,7 +1193,7 @@ void Creature::Shot(a8::Vec2& target_dir, bool& shot_ok, float fly_distance)
(weapon_meta->i->id());
MetaData::Equip* bullet_meta = MetaMgr::Instance()->GetEquip(weapon_meta->i->use_bullet());;
if (weapon_upgrade_meta && bullet_meta) {
if (bullet_meta) {
InternalShot(this,
weapon_meta,
weapon_upgrade_meta,

View File

@ -114,10 +114,10 @@ void Player::InternalUpdate(int delta_time)
if (get_on) {
UpdateGetOn();
}
UpdateAiming();
if (shot_start || shot_hold) {
UpdateShot();
}
UpdateAiming();
if (use_skill) {
UpdateUseSkill();
}