From d7bc526daa787ac0bc41eba752e26a1e276b4b2d Mon Sep 17 00:00:00 2001 From: Hume2 Date: Mon, 24 Jun 2024 20:07:41 +0200 Subject: [PATCH] tilemap.cpp: fix code style --- src/object/tilemap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object/tilemap.cpp b/src/object/tilemap.cpp index a7ae84240fd..ffcc262300e 100644 --- a/src/object/tilemap.cpp +++ b/src/object/tilemap.cpp @@ -438,12 +438,12 @@ TileMap::draw(DrawingContext& context) { // skip draw if current opacity is 0.0 if (m_current_alpha == 0.0f) return; - + context.push_transform(); const bool normal_speed = m_editor_active && Editor::is_active(); - float speed_x = normal_speed ? 1.0f : m_speed_x; - float speed_y = normal_speed ? 1.0f : m_speed_y; + const float speed_x = normal_speed ? 1.0f : m_speed_x; + const float speed_y = normal_speed ? 1.0f : m_speed_y; if (!context.perspective_scale(speed_x, speed_y)) { //The tilemap is placed behind the camera. context.pop_transform();