diff options
author | Treeki <treeki@gmail.com> | 2013-05-29 21:27:22 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-05-29 21:27:22 +0200 |
commit | 2aa698b56c83df5764c7af12fbbad74eeedf8b1d (patch) | |
tree | 1abf2530e4dbf4bbf33f92fc0704b9d0b885b722 /src/koopatlas/hud.cpp | |
parent | 02f19d1fa7c8525327d7bd181d058af684c611d3 (diff) | |
download | kamek-2aa698b56c83df5764c7af12fbbad74eeedf8b1d.tar.gz kamek-2aa698b56c83df5764c7af12fbbad74eeedf8b1d.zip |
disable world completion stars taking non-levels' normal exits into account
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/hud.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index 3802c33..dceddb8 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -380,13 +380,14 @@ void dWMHud_c::loadFooterInfo() { for (int i = 0; i < sect->levelCount; i++) { dLevelInfo_c::entry_s *entry = §->levels[i]; - u32 conds = save->GetLevelCondition(entry->worldSlot, entry->levelSlot); - - if (((entry->flags & 0x10) && !(conds & COND_NORMAL)) || - ((entry->flags & 0x20) && !(conds & COND_SECRET))) - starVisibility[1] = false; if (entry->flags & 2) { + u32 conds = save->GetLevelCondition(entry->worldSlot, entry->levelSlot); + + if (((entry->flags & 0x10) && !(conds & COND_NORMAL)) || + ((entry->flags & 0x20) && !(conds & COND_SECRET))) + starVisibility[1] = false; + if ((conds & COND_COIN_ALL) != COND_COIN_ALL) starVisibility[2] = false; } |