Skip to content

Commit

Permalink
Fix Spell Scroll artifact X position on the Adventure Map (#9381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihhub authored Dec 27, 2024
1 parent 7ee9d84 commit 3d84dab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/fheroes2/agg/agg_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3d84dab

Please sign in to comment.