Skip to content

Commit

Permalink
- make sure that substitution remaps work in Duke's menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 31, 2021
1 parent 25e5776 commit 9ab24f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wadsrc/static/zscript/games/duke/ui/menu.zs
Expand Up @@ -184,7 +184,9 @@ class ListMenuItemDukeTextItem : ListMenuItemTextItem
pe = Color(255, 160, 160, 160);
}

Screen.DrawText(font, Font.CR_NATIVEPAL, xpos, mYpos, mText, DTA_FullscreenScale, FSMode_Fit320x200, DTA_ScaleX, scale, DTA_ScaleY, scale, DTA_Color, pe, DTA_TranslationIndex, trans);
// Palette 0 may not use NATIVEPAL so that substitution remaps work.
Screen.DrawText(font, trans? Font.CR_NATIVEPAL : Font.CR_UNTRANSLATED, xpos, mYpos, mText, DTA_FullscreenScale, FSMode_Fit320x200,
DTA_ScaleX, scale, DTA_ScaleY, scale, DTA_Color, pe, DTA_TranslationIndex, trans);
}

}
Expand Down

0 comments on commit 9ab24f6

Please sign in to comment.