summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-01-28 02:34:45 +0100
committerTreeki <treeki@gmail.com>2013-01-28 02:34:45 +0100
commitf6ff7ca41f6e9b496a03e05e2ae053481add2a9f (patch)
treea92095aeb5cd326d50e7ee6c1d447a956d9293b7 /src/koopatlas/hud.cpp
parent5b3a54abcdfee1f82b200ed45c9b44a4251c8406 (diff)
downloadkamek-f6ff7ca41f6e9b496a03e05e2ae053481add2a9f.tar.gz
kamek-f6ff7ca41f6e9b496a03e05e2ae053481add2a9f.zip
adding warp zone support to maps and a couple of fixes
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp15
1 files changed, 3 insertions, 12 deletions
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 <newer.h>
-
-
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;