From 6c2bec98b73ff175b9ad0d7f6fcb1b7ad1c4fe21 Mon Sep 17 00:00:00 2001 From: ALONSO Laurent Date: Thu, 14 Jul 2022 16:13:17 +0200 Subject: [PATCH] draw_monster: draw correctly complex monster... --- src/game/boe.graphutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/boe.graphutil.cpp b/src/game/boe.graphutil.cpp index a9f35474..42a75cea 100644 --- a/src/game/boe.graphutil.cpp +++ b/src/game/boe.graphutil.cpp @@ -194,7 +194,7 @@ void draw_monsters() { int pic_mode = (monst.direction) < 4 ? 0 : 1; pic_mode += (combat_posing_monster == i + 100) ? 10 : 0; source_rect = get_monster_template_rect(this_monst, pic_mode, k); - int which_sheet = m_pic_index[this_monst].i / 20; + int which_sheet = (m_pic_index[this_monst].i+k) / 20; sf::Texture& monst_gworld = *ResMgr::graphics.get("monst" + std::to_string(1 + which_sheet)); Draw_Some_Item(monst_gworld, source_rect, terrain_screen_gworld, store_loc, 1, 0); }