From 25394c4cddb9e71c3c64258439aaa2664cc0c30f Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 10 Sep 2021 14:02:00 +0200 Subject: [PATCH] Right the wrongs --- lib/include/Atlas.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/Atlas.hpp b/lib/include/Atlas.hpp index 530d885..6a70cd8 100644 --- a/lib/include/Atlas.hpp +++ b/lib/include/Atlas.hpp @@ -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 positions = { Atlas::ghost_blue_frightened, Atlas::ghost_blue_frightened2, Atlas::ghost_white_frightened,