This commit is contained in:
aozhiwei 2023-11-14 16:35:07 +08:00
parent a2e20b0413
commit dee606db26
3 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,7 @@ void Android::Update(int delta_time)
}
#endif
InternalUpdate(delta_time);
shot_hold = false;
CheckShotHold();
++updated_times_;
}

View File

@ -123,6 +123,7 @@ void Hero::Update(int delta_time)
if (playing_skill) {
UpdateSkill();
}
shot_hold = false;
CheckShotHold();
if (room->IsNewBieRoom()) {

View File

@ -180,6 +180,7 @@ void HeroAgent::ShotNormal(const glm::vec3& dir)
GlmHelper::RotateY(shot_dir, a8::RandEx(bullet_angle_offset_min_, bullet_angle_offset_max_)/180.0);
owner_->SetAttackDir(shot_dir);
}
owner_->shot_hold = true;
if (bullet_trace_mode_) {
owner_->Shot(shot_dir, shot_ok, 0, 0);
} else {