1
This commit is contained in:
parent
634750dcc2
commit
b7279a098b
@ -1286,7 +1286,11 @@ void Player::_CMMove(f8::MsgHdr* hdr, const cs::CMMove& msg)
|
||||
} else {
|
||||
skill_dir = GlmHelper::ZERO;
|
||||
}
|
||||
TypeConvert::FromPb(*current_pos_.get(), &msg.current_pos());
|
||||
if (msg.has_current_pos()) {
|
||||
TypeConvert::FromPb(*current_pos_.get(), &msg.current_pos());
|
||||
} else {
|
||||
*current_pos_ = GetPos().ToGlmVec3();
|
||||
}
|
||||
skill_distance = msg.skill_distance();
|
||||
} else {
|
||||
use_skill = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user