Skip to content

Commit 789b216

Browse files
authored
If an actor dies under a 2nd height, its corpse should not appear on top of the 2nd height (#515)
- fix for vanilla bug
1 parent 7f826a6 commit 789b216

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TheForceEngine/TFE_DarkForces/Actor/actor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,10 @@ namespace TFE_DarkForces
652652
corpse->frame = 0;
653653
corpse->anim = animIndex;
654654
corpse->posWS.x = obj->posWS.x;
655-
corpse->posWS.y = (sector->colSecHeight < obj->posWS.y) ? sector->colSecHeight : obj->posWS.y;
655+
// The original code here was:
656+
// corpse->posWS.y = (sector->colSecHeight < obj->posWS.y) ? sector->colSecHeight : obj->posWS.y;
657+
// This causes corpses to always end up on top of bridges in vanilla DF, even if the actor dies under the bridge
658+
corpse->posWS.y = obj->posWS.y;
656659
corpse->posWS.z = obj->posWS.z;
657660
corpse->worldHeight = 0;
658661
corpse->worldWidth = 0;

0 commit comments

Comments
 (0)