From 2afe8f1d3683098c8814c3e05b85d4e51184ae1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20Waage?= Date: Wed, 15 Sep 2021 13:42:52 +0200 Subject: [PATCH] Fixing tidy error. --- lib/Canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Canvas.cpp b/lib/Canvas.cpp index c12244a..28dfea3 100644 --- a/lib/Canvas.cpp +++ b/lib/Canvas.cpp @@ -107,8 +107,8 @@ void Canvas::renderFruits(const Fruits & fruit, int eatenFruits) { const auto & pos = fruit.position(); renderSprite(sprite, pos); } - const size_t x = static_cast(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN); - const size_t y = static_cast((TARGET_MAZE_HEIGHT / 3.0) * 2); + const auto x = static_cast(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN); + const auto y = static_cast((TARGET_MAZE_HEIGHT / 3.0) * 2); for (auto i = 0; i < eatenFruits + 1; i++) { auto sprite_position = float(i) * SPRITE_WIDTH * 1.5f;