This commit is contained in:
aozhiwei 2022-12-28 14:32:32 +08:00
parent 853cdf5751
commit b31f6cdd24
3 changed files with 4 additions and 10 deletions

View File

@ -142,13 +142,7 @@ float Hero::GetSpeed()
void Hero::UpdateMove()
{
#if 0
do {
int distance = std::min(5, speed);
InternalUpdateMove(distance);
speed -= distance;
} while (speed > 0);
#endif
Creature::UpdateMove();
}
void Hero::RecalcSelfCollider()

View File

@ -155,7 +155,7 @@ void Player::InternalUpdate(int delta_time)
moved_frames = 0;
}
if (moving) {
UpdateMove();
UpdateMoving();
}
}
if (room->GetFrameNo() % 2 == 0) {
@ -226,7 +226,7 @@ void Player::InternalUpdate(int delta_time)
}
}
void Player::UpdateMove()
void Player::UpdateMoving()
{
if (action_type == AT_Relive) {
CancelAction();

View File

@ -91,7 +91,7 @@ class Player : public Human
virtual ~Player() override;
virtual void Initialize() override;
virtual void Update(int delta_time) override;
void UpdateMove();
void UpdateMoving();
void UpdateShot();
void UpdateSelectWeapon();
void UpdateDropWeapon();