diff options
author | Treeki <treeki@gmail.com> | 2012-10-18 03:55:02 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-18 03:55:02 +0200 |
commit | edf303f6ba8e30e04e828cb0b9b268d534f194c4 (patch) | |
tree | 88a6c51b3045470694cb56c161cdf53a578f0944 /src/koopatlas/hud.cpp | |
parent | 9af56ee115dea9cbb9ee5b8317fefdb396a0e744 (diff) | |
download | kamek-edf303f6ba8e30e04e828cb0b9b268d534f194c4.tar.gz kamek-edf303f6ba8e30e04e828cb0b9b268d534f194c4.zip |
refactored level info a little
Diffstat (limited to 'src/koopatlas/hud.cpp')
-rw-r--r-- | src/koopatlas/hud.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index a32d32a..2288fe7 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -322,7 +322,7 @@ void dWMHud_c::playHideAnim(int id) { void dWMHud_c::loadHeaderInfo() { - dLevelInfo_c *levelInfo = &dScKoopatlas_c::instance->levelInfo; + dLevelInfo_c *levelInfo = &dLevelInfo_c::s_info; dLevelInfo_c::entry_s *infEntry = levelInfo->searchBySlot( nodeForHeader->levelNumber[0]-1, nodeForHeader->levelNumber[1]-1); @@ -464,7 +464,7 @@ void dWMHud_c::loadFooterInfo() { bool starVisibility[3]; starVisibility[0] = false; - dLevelInfo_c *linfo = &dScKoopatlas_c::instance->levelInfo; + dLevelInfo_c *linfo = &dLevelInfo_c::s_info; dLevelInfo_c::entry_s *lastLevel = linfo->searchByDisplayNum(save->newerWorldID, lastLevelIDs[save->newerWorldID]); if (lastLevel) { starVisibility[0] = (save->GetLevelCondition(lastLevel->worldSlot,lastLevel->levelSlot) & COND_NORMAL); |