- process escape sequences for episode and skill names

For these, colorization is a desirable feature.
This commit is contained in:
Christoph Oelckers 2019-03-05 00:22:26 +01:00
parent 077ba290a6
commit 0fa4e03db6
3 changed files with 4 additions and 3 deletions

View file

@ -2019,7 +2019,7 @@ void FMapInfoParser::ParseEpisodeInfo ()
{ {
ParseAssign(); ParseAssign();
sc.MustGetString (); sc.MustGetString ();
name = sc.String; name = strbin1(sc.String);
} }
else if (sc.Compare ("picname")) else if (sc.Compare ("picname"))
{ {

View file

@ -214,7 +214,7 @@ void FMapInfoParser::ParseSkill ()
{ {
ParseAssign(); ParseAssign();
sc.MustGetString (); sc.MustGetString ();
skill.MenuName = sc.String; skill.MenuName = strbin1(sc.String);
} }
else if (sc.Compare("PlayerClassName")) else if (sc.Compare("PlayerClassName"))
{ {

View file

@ -24,6 +24,7 @@
#include "r_defs.h" #include "r_defs.h"
#include "p_setup.h" #include "p_setup.h"
#include "gi.h" #include "gi.h"
#include "cmdlib.h"
FName MakeEndPic(const char *string); FName MakeEndPic(const char *string);
@ -231,7 +232,7 @@ static int ParseStandardProperty(FScanner &scanner, UMapEntry *mape)
// add the given episode // add the given episode
FEpisode epi; FEpisode epi;
epi.mEpisodeName = split[1]; epi.mEpisodeName = strbin1(split[1]);
epi.mEpisodeMap = mape->MapName; epi.mEpisodeMap = mape->MapName;
epi.mPicName = split[0]; epi.mPicName = split[0];
epi.mShortcut = split[2][0]; epi.mShortcut = split[2][0];