1
This commit is contained in:
parent
503ce124ff
commit
80183f1db2
@ -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 ||
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user