From c220e400436703c71adf2b49a04a863b72c41d29 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 17 Nov 2013 20:42:06 +0100 Subject: broken translations and shit, possibly final commit before public release --- src/pregame.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/pregame.cpp') 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 "); -- cgit v1.2.3