This commit is contained in:
aozhiwei 2021-09-07 07:14:38 +00:00
parent 9f5d6c5f7d
commit af799ef1bd

View File

@ -659,12 +659,14 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
a8::Vec2 new_move_dir; a8::Vec2 new_move_dir;
TypeConvert::FromPb(new_move_dir, &msg.move_dir()); TypeConvert::FromPb(new_move_dir, &msg.move_dir());
if (!HasBuffEffect(kBET_Vertigo)) { if (!HasBuffEffect(kBET_Vertigo)) {
if (!(HasBuffEffect(kBET_Jump) && follow_target.Get())) {
new_move_dir.Normalize(); new_move_dir.Normalize();
SetMoveDir(new_move_dir); SetMoveDir(new_move_dir);
moving = true; moving = true;
} }
} }
} }
}
assert(!isnan(GetMoveDir().x) && !isnan(GetMoveDir().y)); assert(!isnan(GetMoveDir().x) && !isnan(GetMoveDir().y));
if (msg.has_attack_dir()) { if (msg.has_attack_dir()) {
if (std::isfinite(msg.attack_dir().x()) && if (std::isfinite(msg.attack_dir().x()) &&