From 6b8ba20b71eb3f1228c32eaa1595a4bae350aa0a Mon Sep 17 00:00:00 2001 From: tmyqlfpir <80724828+tmyqlfpir@users.noreply.github.com> Date: Sat, 23 Dec 2023 09:33:02 +1000 Subject: [PATCH] Blood: Remove directory path characters for levelGetTitle() (#772) --- source/blood/src/levels.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blood/src/levels.cpp b/source/blood/src/levels.cpp index a2164819fd..c60c43bdce 100644 --- a/source/blood/src/levels.cpp +++ b/source/blood/src/levels.cpp @@ -193,6 +193,11 @@ char * levelGetTitle(void) char *pTitle = gEpisodeInfo[nEpisode].levelsInfo[nLevel].Title; if (*pTitle == 0) return NULL; + for (int i = Bstrlen(pTitle)-1; i > 0; i--) + { + if ((pTitle[i] == '/') || (pTitle[i] == '\\')) + return &pTitle[i+1]; + } return pTitle; }