This commit is contained in:
aozhiwei 2023-05-17 17:34:32 +08:00
parent 9544804a58
commit 2f77ad01de

View File

@ -169,6 +169,10 @@ void Player::InternalUpdate(int delta_time)
room->IsSandTableRoom()
) {
if (sand_table_target_pos) {
if (!GlmHelper::IsEqual2D(*sand_table_target_pos, GetPos().ToGlmVec3())) {
moving = true;
moved_frames = 0;
}
} else {
moving = false;
}
@ -1052,8 +1056,6 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
SetAttackDir(target_dir);
GetMovement()->CalcTargetPos(distance);
}
} else {
sand_table_target_pos = nullptr;
}
last_cmmove_frameno = room->GetFrameNo();
trace_target_uniid = msg.trace_target_uniid();