summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-12-08 15:34:25 -0600
committerColin Noga <Tempus@chronometry.ca>2012-12-08 15:34:25 -0600
commitfce1934bcbd87f3ff3aa8c590b257dfb0600e108 (patch)
treefee2d1276e85640341870657de691d7d0b36b10c /src/koopatlas
parentbcaf929a03cf7608c2a9975dc6448eed2a5c5214 (diff)
downloadkamek-fce1934bcbd87f3ff3aa8c590b257dfb0600e108.tar.gz
kamek-fce1934bcbd87f3ff3aa8c590b257dfb0600e108.zip
shop and hud decrement star coin fixes
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp2
-rw-r--r--src/koopatlas/shop.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp
index ab093ef..4d678c6 100644
--- a/src/koopatlas/hud.cpp
+++ b/src/koopatlas/hud.cpp
@@ -142,7 +142,7 @@ int dWMHud_c::onExecute() {
setupLives(); // FUCK IT
updatePressableButtonThingies();
- int scCount = getStarCoinCount();
+ int scCount = getUnspentStarCoinCount();
WriteNumberToTextBox(&scCount, StarCoinCounter, false);
layout.execAnimations();
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp
index 4ee20f7..025a7d9 100644
--- a/src/koopatlas/shop.cpp
+++ b/src/koopatlas/shop.cpp
@@ -519,7 +519,7 @@ void dWMShop_c::loadInfo() {
TitleShadow->SetString(shopName);
// load the coin count
- int scCount = getStarCoinCount();
+ int scCount = getUnspentStarCoinCount();
WriteNumberToTextBox(&scCount, CoinCount, false);
WriteNumberToTextBox(&scCount, CoinCountShadow, false);
}
@@ -532,7 +532,7 @@ void dWMShop_c::buyItem(int item) {
{5, 4, 3}, {8, 7, 5}
};
- int cost = itemDefs[item][0], cash = getStarCoinCount();
+ int cost = itemDefs[item][0], cash = getUnspentStarCoinCount();
if (cost > cash) {
lakituModel->playAnim("notenough", 1.0f, 1);
@@ -580,7 +580,7 @@ void dWMShop_c::buyItem(int item) {
}
// load the coin count
- int scCount = getStarCoinCount();
+ int scCount = getUnspentStarCoinCount();
WriteNumberToTextBox(&scCount, CoinCount, false);
WriteNumberToTextBox(&scCount, CoinCountShadow, false);