Fix Camera2D ignoring zoom when checking limits

Closes #1912

(cherry picked from commit 7a8aea0be9)
This commit is contained in:
Bojidar Marinov 2016-04-19 21:32:26 +03:00 committed by Rémi Verschelde
parent 0f47311610
commit c523749662
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ Matrix32 Camera2D::get_camera_transform() {
screen_offset = screen_offset.rotated(angle);
}
Rect2 screen_rect(-screen_offset+ret_camera_pos,screen_size);
Rect2 screen_rect(-screen_offset+ret_camera_pos,screen_size*zoom);
if (screen_rect.pos.x + screen_rect.size.x > limit[MARGIN_RIGHT])
screen_rect.pos.x = limit[MARGIN_RIGHT] - screen_rect.size.x;