mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Make recovery heart only heal the player who interacted with it
This commit is contained in:
parent
edd29c0719
commit
0bb62eb381
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ void bhv_recovery_heart_loop(void) {
|
||||||
for (s32 i = 0; i < MAX_PLAYERS; i++) {
|
for (s32 i = 0; i < MAX_PLAYERS; i++) {
|
||||||
if (!gMarioStates[i].visibleToEnemies) { continue; }
|
if (!gMarioStates[i].visibleToEnemies) { continue; }
|
||||||
if (!is_player_active(&gMarioStates[i])) { continue; }
|
if (!is_player_active(&gMarioStates[i])) { continue; }
|
||||||
if (&gMarioStates[i] == nearestInteractingState || dist_between_objects(o, gMarioStates[i].marioObj) < 1000) {
|
if (&gMarioStates[i] == nearestInteractingState || (dist_between_objects(o, gMarioStates[i].marioObj) < 1000 && configCoopCompatibility)) {
|
||||||
gMarioStates[i].healCounter += 4;
|
gMarioStates[i].healCounter += 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue