From 59381e2ab7338898f4608f180094622b24f797cc 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 4e03689646..13ac7138f7 100644 --- a/src/object/tilemap.cpp +++ b/src/object/tilemap.cpp @@ -439,12 +439,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();