Fix boss healthbars not handling fun tags.

This commit is contained in:
Mari the Deer 2022-09-19 01:02:21 +02:00
commit fd9de5756f
2 changed files with 3 additions and 3 deletions

View file

@ -583,7 +583,7 @@ extend Class SWWMHandler
if ( (bname.Left(1) == "$") && swwm_funtags )
{
String fun = bname.."_FUN";
if ( !(StringTable.Localize(fun) ~== fun.Mid(1)) ) bname == fun;
if ( !(StringTable.Localize(fun) ~== fun.Mid(1)) ) bname = fun;
}
Screen.DrawText(mSmallFont,Font.CR_WHITE,vpos.x,vpos.y-(mSmallFont.GetHeight()+2),StringTable.Localize(bname),DTA_VirtualWidthF,bar.ss.x,DTA_VirtualHeightF,bar.ss.y,DTA_KeepRatio,true,DTA_Alpha,bossalpha);
}