diff options
author | Treeki <treeki@gmail.com> | 2013-05-04 23:24:33 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-05-04 23:24:33 +0200 |
commit | b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05 (patch) | |
tree | f8800ef0809e17612b9d75df3eed90d3e29fd0a6 | |
parent | 0dcf7cd8842c3cb60acdc672c3c71d415647893a (diff) | |
download | kamek-b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05.tar.gz kamek-b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05.zip |
attempted fix for the shop lives thing
-rw-r--r-- | src/koopatlas/shop.cpp | 8 |
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) |