修复子弹发射时间问题

This commit is contained in:
aozhiwei 2019-04-11 18:59:57 +08:00
parent d86d5f6d2f
commit ad57cf3f2b

View File

@ -115,9 +115,6 @@ void Player::UpdateShot()
}
if (shot_hold) {
++series_shot_frames;
if (series_shot_frames > 4) {
shot_hold = false;
series_shot_frames = 0;
if (last_shot_frameno_ == 0 ||
(
(room->frame_no - last_shot_frameno_) * (1000 / SERVER_FRAME_RATE)) >
@ -125,6 +122,9 @@ void Player::UpdateShot()
) {
Shot();
}
if (series_shot_frames > 4) {
shot_hold = false;
series_shot_frames = 0;
}
}
}