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/koopatlas/shop.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/koopatlas/shop.cpp')
-rw-r--r-- | src/koopatlas/shop.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp index 6f9566e..1ab6458 100644 --- a/src/koopatlas/shop.cpp +++ b/src/koopatlas/shop.cpp @@ -538,23 +538,9 @@ void dWMShop_c::loadInfo() { rightCol.colourise(save->hudHintH, save->hudHintS, save->hudHintL); // find out the shop name - dLevelInfo_c::entry_s *shopNameEntry = - dLevelInfo_c::s_info.searchBySlot(shopKind, 98); - - wchar_t shopName[100]; - // TODO: refactor this a bit - const char *sourceName = dLevelInfo_c::s_info.getNameForLevel(shopNameEntry); - int charCount = 0; - - while (*sourceName != 0 && charCount < 99) { - shopName[charCount] = *sourceName; - sourceName++; - charCount++; - } - shopName[charCount] = 0; - - Title->SetString(shopName); - TitleShadow->SetString(shopName); + dScript::Res_c *bmg = GetBMG(); + Newer_WriteBMGToTextBox(Title, bmg, 8000+shopKind+1, 99, 0); + Newer_WriteBMGToTextBox(TitleShadow, bmg, 8000+shopKind+1, 99, 0); // load the coin count int scCount = getUnspentStarCoinCount(); |