Fix bug with missing return value for effect updating.
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user