Fixing tidy error.

This commit is contained in:
Ólafur Waage 2021-09-15 13:42:52 +02:00
parent ed6466a306
commit 2afe8f1d36

View file

@ -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<size_t>(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN);
const size_t y = static_cast<size_t>((TARGET_MAZE_HEIGHT / 3.0) * 2);
const auto x = static_cast<size_t>(LEFT_MARGIN + TARGET_MAZE_WIDTH + LEFT_MARGIN);
const auto y = static_cast<size_t>((TARGET_MAZE_HEIGHT / 3.0) * 2);
for (auto i = 0; i < eatenFruits + 1; i++) {
auto sprite_position = float(i) * SPRITE_WIDTH * 1.5f;