This commit is contained in:
aozhiwei 2021-05-11 13:59:16 +08:00
parent 503ce124ff
commit 80183f1db2
2 changed files with 6 additions and 0 deletions

View File

@ -220,7 +220,11 @@ void Player::UpdateShot()
) {
Shot();
}
#if 1
if (room->GetFrameNo() - last_cmmove_frameno >= 4) {
#else
if (series_shot_frames > 8) {
#endif
shot_hold = false;
series_shot_frames = 0;
}
@ -995,6 +999,7 @@ void Player::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
{
last_cmmove_frameno_ = room->GetFrameNo();
moving = false;
if (msg.has_move_dir()) {
if (std::abs(msg.move_dir().x()) > FLT_EPSILON ||

View File

@ -130,6 +130,7 @@ private:
private:
std::map<int, std::vector<std::tuple<int, int, int>>> box_hash_;
std::set<int> receved_box_hash_;
long long last_cmmove_frameno_ = 0;
friend class EntityFactory;
};