修复点射问题

This commit is contained in:
aozhiwei 2020-11-30 13:45:19 +08:00
parent db16743f9a
commit 30551d587c

View File

@ -980,8 +980,13 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
if (moving) { if (moving) {
moved_frames = 0; moved_frames = 0;
} }
//前一个状态是纯点射
if (shot_start && !shot_hold) {
} else {
shot_start = msg.shot_start(); shot_start = msg.shot_start();
shot_hold = msg.shot_hold(); shot_hold = msg.shot_hold();
}
fly_distance = std::min(200.0f, msg.fly_distance()); fly_distance = std::min(200.0f, msg.fly_distance());
if (!shot_hold) { if (!shot_hold) {
series_shot_frames = 0; series_shot_frames = 0;