1
This commit is contained in:
parent
a2e20b0413
commit
dee606db26
@ -107,6 +107,7 @@ void Android::Update(int delta_time)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
InternalUpdate(delta_time);
|
InternalUpdate(delta_time);
|
||||||
|
shot_hold = false;
|
||||||
CheckShotHold();
|
CheckShotHold();
|
||||||
++updated_times_;
|
++updated_times_;
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,7 @@ void Hero::Update(int delta_time)
|
|||||||
if (playing_skill) {
|
if (playing_skill) {
|
||||||
UpdateSkill();
|
UpdateSkill();
|
||||||
}
|
}
|
||||||
|
shot_hold = false;
|
||||||
CheckShotHold();
|
CheckShotHold();
|
||||||
if (room->IsNewBieRoom()) {
|
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);
|
GlmHelper::RotateY(shot_dir, a8::RandEx(bullet_angle_offset_min_, bullet_angle_offset_max_)/180.0);
|
||||||
owner_->SetAttackDir(shot_dir);
|
owner_->SetAttackDir(shot_dir);
|
||||||
}
|
}
|
||||||
|
owner_->shot_hold = true;
|
||||||
if (bullet_trace_mode_) {
|
if (bullet_trace_mode_) {
|
||||||
owner_->Shot(shot_dir, shot_ok, 0, 0);
|
owner_->Shot(shot_dir, shot_ok, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user