From b755b0e2bcd56c8811a1e3d48c34bcfbadaa3a05 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 4 May 2013 23:24:33 +0200 Subject: attempted fix for the shop lives thing --- src/koopatlas/shop.cpp | 8 +++++--- 1 file 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) -- cgit v1.2.3