From 3d84dab6ff39d5df00b1caf97b83be4374bd1113 Mon Sep 17 00:00:00 2001 From: Ihar Hubchyk Date: Fri, 27 Dec 2024 12:57:22 +0800 Subject: [PATCH] Fix Spell Scroll artifact X position on the Adventure Map (#9381) --- src/fheroes2/agg/agg_image.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fheroes2/agg/agg_image.cpp b/src/fheroes2/agg/agg_image.cpp index a1af2d665ac..7bbabb4176f 100644 --- a/src/fheroes2/agg/agg_image.cpp +++ b/src/fheroes2/agg/agg_image.cpp @@ -4247,7 +4247,14 @@ namespace case ICN::OBJNARTI: LoadOriginalICN( id ); if ( _icnVsSprite[id].size() == 206 ) { - // If we have the Price of Loyalty assets we make a map sprite for the Magic Book artifact. + // These are the Price of Loyalty assets. + + // Spell Scroll has an invalid offset by X axis. + if ( _icnVsSprite[id][173].width() == 21 ) { + _icnVsSprite[id][173].setPosition( 2, _icnVsSprite[id][173].y() ); + } + + // Make a map sprite for the Magic Book artifact. _icnVsSprite[id].resize( 208 ); // Magic book sprite shadow.