Skip to content

Commit

Permalink
Camera offset fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jun 24, 2024
1 parent c7620af commit 8ad803f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/scenelevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void scene_level::update_camera()
{
camera_main->set_target(entity_player->get_position());

const auto &offset = camera_main->get_offset();
const auto offset = camera_main->get_offset() / camera_main->get_zoom();

const auto offset_x_min = offset.x();
const auto offset_x_max = level_width - offset.x() - ce::tile_size * 0.25F;
Expand Down

0 comments on commit 8ad803f

Please sign in to comment.