1
This commit is contained in:
parent
a2e20b0413
commit
dee606db26
@ -107,6 +107,7 @@ void Android::Update(int delta_time)
|
||||
}
|
||||
#endif
|
||||
InternalUpdate(delta_time);
|
||||
shot_hold = false;
|
||||
CheckShotHold();
|
||||
++updated_times_;
|
||||
}
|
||||
|
@ -123,6 +123,7 @@ void Hero::Update(int delta_time)
|
||||
if (playing_skill) {
|
||||
UpdateSkill();
|
||||
}
|
||||
shot_hold = false;
|
||||
CheckShotHold();
|
||||
if (room->IsNewBieRoom()) {
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user