Fix bug with missing return value for effect updating.

This commit is contained in:
2023-06-16 02:33:12 -05:00
parent 9db2565060
commit 2f95e71114
10 changed files with 14 additions and 9 deletions
+3 -3
View File
@@ -14,11 +14,12 @@ INCLUDE_game
const float Player::GROUND_SLAM_SPIN_TIME=0.6f;
const float Player::GROUND_SLAM_COOLDOWN=20;
Player::Player(){
Player::Player():
state(State::NORMAL),lastReleasedMovementKey(DOWN),facingDirection(DOWN){
}
Player::Player(vf2d pos):
pos(pos){
pos(pos),state(State::NORMAL),lastReleasedMovementKey(DOWN),facingDirection(DOWN){
}
void Player::SetX(float x){
@@ -127,7 +128,6 @@ void Player::Update(float fElapsedTime){
default:{
//Update animations normally.
}
[[fallthrough]];
}
animation.UpdateState(internal_animState,fElapsedTime);
groundSlamCooldown=std::max(0.f,groundSlamCooldown-fElapsedTime);