Right the wrongs

This commit is contained in:
Corentin Jabot 2021-09-10 14:02:00 +02:00
parent a61da5ab80
commit 25394c4cdd
1 changed files with 2 additions and 2 deletions

View File

@ -71,11 +71,11 @@ constexpr GridPosition ghostSprite(Ghost ghost, Direction direction, bool altern
return { x, y };
}
constexpr GridPosition initialFrightened(int animationIndex) {
constexpr GridPosition initialFrightened(std::size_t animationIndex) {
return (animationIndex % 2) == 0 ? Atlas::ghost_blue_frightened2 : Atlas::ghost_blue_frightened;
}
constexpr GridPosition endingFrightened(int animationIndex) {
constexpr GridPosition endingFrightened(std::size_t animationIndex) {
std::array<GridPosition, 4> positions = { Atlas::ghost_blue_frightened,
Atlas::ghost_blue_frightened2,
Atlas::ghost_white_frightened,