diff options
author | Treeki <treeki@gmail.com> | 2013-11-17 20:42:06 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-11-17 20:42:06 +0100 |
commit | c220e400436703c71adf2b49a04a863b72c41d29 (patch) | |
tree | 5d615b6834ee24233549a5ee4860f363c6e50185 /src/pregame.cpp | |
parent | d55debf80b417793ce924ec977ed3a16413fd5d6 (diff) | |
download | kamek-c220e400436703c71adf2b49a04a863b72c41d29.tar.gz kamek-c220e400436703c71adf2b49a04a863b72c41d29.zip |
broken translations and shit, possibly final commit before public releaselevel-select
Diffstat (limited to 'src/pregame.cpp')
-rw-r--r-- | src/pregame.cpp | 13 |
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 "); |