From 2aa698b56c83df5764c7af12fbbad74eeedf8b1d Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 29 May 2013 21:27:22 +0200 Subject: disable world completion stars taking non-levels' normal exits into account --- src/koopatlas/hud.cpp | 11 ++++++----- 1 file 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; } -- cgit v1.2.3