From f6ff7ca41f6e9b496a03e05e2ae053481add2a9f Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 28 Jan 2013 02:34:45 +0100 Subject: adding warp zone support to maps and a couple of fixes --- src/koopatlas/hud.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/koopatlas/hud.cpp') diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index 6166d64..157821b 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -1,8 +1,6 @@ #include "koopatlas/hud.h" #include - - dWMHud_c *dWMHud_c::instance = 0; dWMHud_c *dWMHud_c::build() { @@ -109,7 +107,7 @@ int dWMHud_c::onCreate() { loadFooterInfo(); SaveBlock *save = GetSaveFile()->GetBlock(-1); - willShowFooter = (save->newerWorldName[0] != 0); + willShowFooter = (save->newerWorldName[0] != 0) && (save->hudHintH != 2000); if (!dScKoopatlas_c::instance->pathManager.isMoving) enteredNode(); @@ -303,7 +301,7 @@ void dWMHud_c::loadHeaderInfo() { Header_Right->trans.x = totalWidth; SaveBlock *save = GetSaveFile()->GetBlock(-1); - headerCol.colourise(save->hudHintH, save->hudHintS, save->hudHintL); + headerCol.colourise(save->hudHintH%1000, save->hudHintS, save->hudHintL); } @@ -325,20 +323,13 @@ void dWMHud_c::loadFooterInfo() { WorldName->colour1 = save->hudTextColours[0]; WorldName->colour2 = save->hudTextColours[1]; - footerCol.colourise(save->hudHintH, save->hudHintS, save->hudHintL); + footerCol.colourise(save->hudHintH%1000, save->hudHintS, save->hudHintL); // figure out if stars are needed // Star 0: world is complete // Star 1: all exits complete // Star 2: all star coins obtained - static int lastLevelIDs[] = { - -1, /*no world*/ - 27, 27, 27, 27, 27, 27, 27, 25, - -1, /*no end level in W9*/ - 24, 24, 24, 3, 5 - }; - bool starVisibility[3]; starVisibility[0] = false; -- cgit v1.2.3