Skip to content

Commit

Permalink
Make the formatter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberth289346 committed Oct 1, 2023
1 parent 676b151 commit 22f932e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions CorsixTH/Src/th_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,20 +1740,21 @@ 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);
}

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; }

Expand Down
3 changes: 1 addition & 2 deletions CorsixTH/Src/th_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<drawable*>(pItem->next);
}
Expand Down

0 comments on commit 22f932e

Please sign in to comment.