Skip to content

Commit

Permalink
tilemap.cpp: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Hume2 committed Jul 15, 2024
1 parent 19b9ab5 commit 59381e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/object/tilemap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 59381e2

Please sign in to comment.