Skip to content

Commit 8f835fe

Browse files
authored
check for global (#6882)
1 parent c26b0ca commit 8f835fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/ship/shiphit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ std::pair<std::optional<ConditionData>, float> do_subobj_hit_stuff(object *ship_
799799
}
800800
}
801801
subsys->current_hits = 0.0f;
802-
do_subobj_destroyed_stuff( ship_p, subsys, hitpos );
802+
do_subobj_destroyed_stuff( ship_p, subsys, global_damage ? nullptr : hitpos );
803803
continue;
804804
} else {
805805
continue;
@@ -1045,7 +1045,7 @@ std::pair<std::optional<ConditionData>, float> do_subobj_hit_stuff(object *ship_
10451045

10461046
// multiplayer clients never blow up subobj stuff on their own
10471047
if ( (subsystem->current_hits <= 0.0f) && !MULTIPLAYER_CLIENT) {
1048-
do_subobj_destroyed_stuff( ship_p, subsystem, hitpos );
1048+
do_subobj_destroyed_stuff( ship_p, subsystem, global_damage ? nullptr : hitpos );
10491049
}
10501050

10511051
if (damage_left <= 0) { // no more damage to distribute, so stop checking

0 commit comments

Comments
 (0)