Fix images for scroll buttons

This commit is contained in:
Alexander Batalov 2022-08-29 23:42:36 +03:00
parent 4ed86be78e
commit 2a0d0633f1
1 changed files with 4 additions and 2 deletions

View File

@ -5011,7 +5011,8 @@ int worldmapWindowInit()
for (int index = 0; index < WORLDMAP_ARROW_FRM_COUNT; index++) { for (int index = 0; index < WORLDMAP_ARROW_FRM_COUNT; index++) {
// 200 - uparwon.frm - character editor // 200 - uparwon.frm - character editor
// 199 - uparwoff.frm - character editor // 199 - uparwoff.frm - character editor
fid = buildFid(OBJ_TYPE_INTERFACE, 200 - index, 0, 0, 0); // SFALL: Fix images for scroll buttons.
fid = buildFid(OBJ_TYPE_INTERFACE, 199 + index, 0, 0, 0);
frm = artLock(fid, &(gWorldmapTownListScrollUpFrmHandle[index])); frm = artLock(fid, &(gWorldmapTownListScrollUpFrmHandle[index]));
if (frm == NULL) { if (frm == NULL) {
return -1; return -1;
@ -5025,7 +5026,8 @@ int worldmapWindowInit()
for (int index = 0; index < WORLDMAP_ARROW_FRM_COUNT; index++) { for (int index = 0; index < WORLDMAP_ARROW_FRM_COUNT; index++) {
// 182 - dnarwon.frm - character editor // 182 - dnarwon.frm - character editor
// 181 - dnarwoff.frm - character editor // 181 - dnarwoff.frm - character editor
fid = buildFid(OBJ_TYPE_INTERFACE, 182 - index, 0, 0, 0); // SFALL: Fix images for scroll buttons.
fid = buildFid(OBJ_TYPE_INTERFACE, 181 + index, 0, 0, 0);
frm = artLock(fid, &(gWorldmapTownListScrollDownFrmHandle[index])); frm = artLock(fid, &(gWorldmapTownListScrollDownFrmHandle[index]));
if (frm == NULL) { if (frm == NULL) {
return -1; return -1;