summaryrefslogtreecommitdiff
path: root/src/pregame.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pregame.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/pregame.cpp b/src/pregame.cpp
index 6ac04de..df8839a 100644
--- a/src/pregame.cpp
+++ b/src/pregame.cpp
@@ -66,16 +66,9 @@ void LoadPregameStyleNameAndNumber(m2d::EmbedLayout_c *layout) {
// work out the thing now
dLevelInfo_c::entry_s *level = dLevelInfo_c::s_info.searchBySlot(CurrentWorld, CurrentLevel);
if (level) {
- wchar_t convLevelName[160];
- const char *srcLevelName = dLevelInfo_c::s_info.getNameForLevel(level);
- int i = 0;
- while (i < 159 && srcLevelName[i]) {
- convLevelName[i] = srcLevelName[i];
- i++;
- }
- convLevelName[i] = 0;
- LevelNameShadow->SetString(convLevelName);
- LevelName->SetString(convLevelName);
+ dScript::Res_c *bmg = GetBMG();
+ Newer_WriteBMGToTextBox(LevelName, bmg, 8000+level->worldSlot+1, level->levelSlot+1, 0);
+ Newer_WriteBMGToTextBox(LevelNameShadow, bmg, 8000+level->worldSlot+1, level->levelSlot+1, 0);
wchar_t levelNumber[32];
wcscpy(levelNumber, L"World ");