Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/game/prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,12 @@ bool shotTestLos(struct coord *gunpos2d, struct coord *gundir2d, struct coord *g

// Check for BG hits first
for (i = 0; rooms[i] != -1; i++) {
if (g_Vars.stagenum == STAGE_INVESTIGATION && rooms[i] == 100) {
// skip BG test during final cutscene of the dataDyne Research
// level since the camera clips through the wall, which will
// incorrectly remove lights when Dr Caroll first appears.
continue;
}
if (bgTestHitInRoom(&shotdata.gunpos3d, endpos3d, rooms[i], &hitthing)) {
// check if it's far enough away from the end point
if (fabsf(hitthing.pos.x - endpos3d->x) >= 0.1f ||
Expand Down