From d94635c78c1a05686a342c3de19c369f3f139bc9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 30 Nov 2020 13:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=B0=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/player.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/gameserver/player.cc b/server/gameserver/player.cc index b5a4812..b727fe5 100644 --- a/server/gameserver/player.cc +++ b/server/gameserver/player.cc @@ -867,8 +867,13 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg) if (moving) { moved_frames = 0; } - shot_start = msg.shot_start(); - shot_hold = msg.shot_hold(); + //前一个状态是纯点射 + if (shot_start && !shot_hold) { + + } else { + shot_start = msg.shot_start(); + shot_hold = msg.shot_hold(); + } fly_distance = std::min(200.0f, msg.fly_distance()); if (!shot_hold) { series_shot_frames = 0;