1
This commit is contained in:
parent
853cdf5751
commit
b31f6cdd24
@ -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()
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user