From 22f932ed5cf9c3dbd743a712a88201043fb644f1 Mon Sep 17 00:00:00 2001 From: Alberth Date: Sun, 1 Oct 2023 08:32:03 +0200 Subject: [PATCH] Make the formatter happy. --- CorsixTH/Src/th_gfx.cpp | 9 +++++---- CorsixTH/Src/th_map.cpp | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CorsixTH/Src/th_gfx.cpp b/CorsixTH/Src/th_gfx.cpp index 85e6248239..9a9bd07435 100644 --- a/CorsixTH/Src/th_gfx.cpp +++ b/CorsixTH/Src/th_gfx.cpp @@ -1740,11 +1740,13 @@ bool THSpriteRenderList_is_multiple_frame_animation(drawable* pSelf) { } // namespace -void sprite_render_list::draw_fn(render_target* pCanvas, int iDestX, int iDestY) { +void sprite_render_list::draw_fn(render_target* pCanvas, int iDestX, + int iDestY) { THSpriteRenderList_draw(this, pCanvas, iDestX, iDestY); } -bool sprite_render_list::hit_test_fn(int iDestX, int iDestY, int iTestX, int iTestY) { +bool sprite_render_list::hit_test_fn(int iDestX, int iDestY, int iTestX, + int iTestY) { return THSpriteRenderList_hit_test(this, iDestX, iDestY, iTestX, iTestY); } @@ -1752,8 +1754,7 @@ bool sprite_render_list::is_multiple_frame_animation_fn() { return THSpriteRenderList_is_multiple_frame_animation(this); } -sprite_render_list::sprite_render_list() : animation_base() { -} +sprite_render_list::sprite_render_list() : animation_base() {} sprite_render_list::~sprite_render_list() { delete[] sprites; } diff --git a/CorsixTH/Src/th_map.cpp b/CorsixTH/Src/th_map.cpp index 808c2d2520..0df876855f 100644 --- a/CorsixTH/Src/th_map.cpp +++ b/CorsixTH/Src/th_map.cpp @@ -1118,8 +1118,7 @@ void level_map::draw(render_target* pCanvas, int iScreenX, int iScreenY, : nullptr; while (pItem) { if (pItem->get_drawing_layer() == 8) { - pItem->draw_fn(pCanvas, formerIterator.x(), - formerIterator.y()); + pItem->draw_fn(pCanvas, formerIterator.x(), formerIterator.y()); } pItem = static_cast(pItem->next); }