Skip to content
Snippets Groups Projects
Commit 97d28540 authored by FREITAG MATTHIEU's avatar FREITAG MATTHIEU
Browse files

hotfix ghosts reset

parent 52194487
Branches
Tags
2 merge requests!89Main,!85Hotfix
Pipeline #106498 failed with stage
in 24 seconds
......@@ -279,7 +279,7 @@ void Ghost::reset()
{
MovingEntity::reset();
status_ = GhostStatus::kHouseWaiting;
previous_status_ = status_;
previous_status_ = {};
frigthened_counter_.stop();
pellet_counter_.restart();
setSpeedSlow(true);
......
......@@ -202,6 +202,7 @@ void MovingEntity::reset()
left_.reset(); // reset animation
setSprite(left_.getSprite()); // default sprite
setPosition(start_); // reset position
setEnabled(true);
}
const Direction &MovingEntity::getPreviousDirection() const {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment