1
This commit is contained in:
parent
374f478dc5
commit
13d980d507
@ -565,6 +565,7 @@ void Human::_UpdateMove(int speed)
|
||||
{
|
||||
a8::Vec2 old_pos = head_->pos;
|
||||
head_->pos = head_->pos + move_dir * head_->speed;
|
||||
head_->dir = move_dir;
|
||||
}
|
||||
{
|
||||
for (auto& node : body_list) {
|
||||
|
@ -88,7 +88,6 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
||||
a8::Vec2 old_move_dir;
|
||||
TypeConvert::FromPb(move_dir, &msg.move_dir());
|
||||
move_dir.Normalize();
|
||||
attack_dir = move_dir;
|
||||
moving = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user