From aaca31b3495060b46f178d476636563279fc1c23 Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Wed, 18 Dec 2024 13:27:54 +0100 Subject: implemented wouter feedback --- src/crepe/facade/SDLContext.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/crepe/facade/SDLContext.cpp') diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index ed702b0..0d5eb01 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -11,9 +11,7 @@ #include #include #include -#include #include -#include #include #include @@ -149,13 +147,11 @@ SDL_FRect SDLContext::get_dst_rect(const DestinationRectangleData & ctx) const { size *= cam_aux_data.render_scale * ctx.img_scale * data.scale_offset; if (ctx.sprite.data.world_space) { - cout << "world_space" << endl; vec2 multiplier = cam_aux_data.cam_pos + (cam_aux_data.zoomed_viewport / 2) * cam_aux_data.render_scale - size / 2 + cam_aux_data.bar_size; screen_pos += multiplier; } else { - cout << "camera space" << endl; vec2 multiplier = (cam_aux_data.zoomed_viewport / 2) * cam_aux_data.render_scale - size / 2 + cam_aux_data.bar_size; screen_pos += multiplier; -- cgit v1.2.3