From 9b446e41fc244191d68e9bde1e809eb954ac30d3 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 18 Jun 2017 16:57:05 +0300 Subject: [PATCH] Fixed applying of flags on fullscreen inventory bar DI_ALWAYSSHOWCOUNTERS and DI_DRAWCURSORFIRST flags are no longer ignored in BaseStatusBar.DrawInventoryBar() function https://forum.zdoom.org/viewtopic.php?t=56798 --- wadsrc/static/zscript/statusbar/statusbar.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/statusbar/statusbar.txt b/wadsrc/static/zscript/statusbar/statusbar.txt index cc773e1a2..992328e81 100644 --- a/wadsrc/static/zscript/statusbar/statusbar.txt +++ b/wadsrc/static/zscript/statusbar/statusbar.txt @@ -1058,7 +1058,7 @@ class BaseStatusBar native ui { for(int j = 0; j < 2; j++) { - if (j ^ !!(parms.flags & DI_DRAWCURSORFIRST)) + if (j ^ !!(flags & DI_DRAWCURSORFIRST)) { if (item == CPlayer.mo.InvSel) { @@ -1073,7 +1073,7 @@ class BaseStatusBar native ui } } - if (parms.amountfont != null && (item.Amount > 1 || (parms.flags & DI_ALWAYSSHOWCOUNTERS))) + if (parms.amountfont != null && (item.Amount > 1 || (flags & DI_ALWAYSSHOWCOUNTERS))) { DrawString(parms.amountfont, FormatNumber(item.Amount, 0, 5), textpos + (boxsize.X * i, 0), flags | DI_TEXT_ALIGN_RIGHT, parms.cr, parms.itemalpha); }