Merge pull request #55417 from ekumlin/issue-54856

This commit is contained in:
Rémi Verschelde 2021-11-29 14:46:01 +01:00 committed by GitHub
commit cae5615a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ Transform2D Camera2D::get_camera_transform() {
Rect2 screen_rect(-screen_offset + ret_camera_pos, screen_size * zoom);
if (!limit_smoothing_enabled) {
if (!smoothing_enabled || !limit_smoothing_enabled) {
if (screen_rect.position.x < limit[SIDE_LEFT]) {
screen_rect.position.x = limit[SIDE_LEFT];
}