From 730c10c5331ee79a20e52a0b7f751d91e851d02a Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sat, 18 Jan 2025 21:26:25 -0600 Subject: [PATCH] Dedup in `WorldSegment.cpp` --- WorldSegment.cpp | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/WorldSegment.cpp b/WorldSegment.cpp index 87f6ffdb..d4d5c0b6 100644 --- a/WorldSegment.cpp +++ b/WorldSegment.cpp @@ -268,14 +268,9 @@ void WorldSegment::DrawAllTiles() if(todraw.size()>0) { al_hold_bitmap_drawing(true); for(size_t i=0; i(todraw[i].drawobject), - todraw[i].tint, - todraw[i].sx, - todraw[i].sy, - todraw[i].sw, - todraw[i].sh, - todraw[i].dx, - todraw[i].dy, - todraw[i].dw, - todraw[i].dh, - todraw[i].flags ); + DrawBitmap(std::get(todraw[i].drawobject)); break; case CreatureText: DrawCreatureText(