summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-05-04 23:24:33 +0200
committerTreeki <treeki@gmail.com>2013-05-04 23:24:33 +0200
commitb755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05 (patch)
treef8800ef0809e17612b9d75df3eed90d3e29fd0a6 /src/koopatlas
parent0dcf7cd8842c3cb60acdc672c3c71d415647893a (diff)
downloadkamek-b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05.tar.gz
kamek-b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05.zip
attempted fix for the shop lives thing
Diffstat (limited to 'src/koopatlas')
-rw-r--r--src/koopatlas/shop.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp
index 5dc1937..0df2efd 100644
--- a/src/koopatlas/shop.cpp
+++ b/src/koopatlas/shop.cpp
@@ -611,9 +611,11 @@ void dWMShop_c::buyItem(int item) {
// Apply lives to everyone
for (int i = 0; i < 4; i++) {
- Player_Lives[i] += appliedItems[(int)ONE_UP];
- if (Player_Lives[i] > 99)
- Player_Lives[i] = 99;
+ if (Player_Active[i]) {
+ Player_Lives[i] += appliedItems[(int)ONE_UP];
+ if (Player_Lives[i] > 99)
+ Player_Lives[i] = 99;
+ }
}
if (appliedItems[(int)ONE_UP] > 0)