HUD fix for level names with trailing whitespace.
This commit is contained in:
parent
0caee59f1d
commit
7e3a4a223f
3 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r757 \cu(Sun 5 Mar 17:03:02 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r757 \cu(2023-03-05 17:03:02)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r758 \cu(Mon 6 Mar 17:06:32 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r758 \cu(2023-03-06 17:06:32)\c-";
|
||||
|
|
|
|||
|
|
@ -822,6 +822,9 @@ extend Class SWWMStatusBar
|
|||
{
|
||||
int label = am_showmaplabel;
|
||||
String ln = level.levelname;
|
||||
if ( ln.Left(1) == "$" ) ln = StringTable.Localize(ln);
|
||||
// level name may contain trailing whitespace due to DEHACKED fuckery, so strip it
|
||||
ln.StripRight();
|
||||
int iof;
|
||||
if ( ((iof = ln.RightIndexOf(" - by: ")) != -1) || ((iof = ln.RightIndexOf(" - by ")) != -1) || ((iof = ln.RightIndexOf(" - ")) != -1) )
|
||||
ln.Truncate(iof);
|
||||
|
|
|
|||
|
|
@ -702,6 +702,8 @@ Class DSMapTitle : HUDMessageBase
|
|||
txtsub = level.authorname;
|
||||
if ( txt.Left(1) == "$" ) txt = StringTable.Localize(txt);
|
||||
if ( txtsub.Left(1) == "$" ) txtsub = StringTable.Localize(txtsub);
|
||||
// level name may contain trailing whitespace due to DEHACKED fuckery, so strip it
|
||||
txt.StripRight();
|
||||
int sep;
|
||||
if ( (sep = txt.RightIndexOf(" - by: ")) != -1 ) // 20 heretics, spooktober
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue