summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-05-29 21:27:22 +0200
committerTreeki <treeki@gmail.com>2013-05-29 21:27:22 +0200
commit2aa698b56c83df5764c7af12fbbad74eeedf8b1d (patch)
tree1abf2530e4dbf4bbf33f92fc0704b9d0b885b722
parent02f19d1fa7c8525327d7bd181d058af684c611d3 (diff)
downloadkamek-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.cpp11
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 = &sect->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;
}