Skip to content
Snippets Groups Projects

Camera subsector crash fix

Merged Monster Iestyn requested to merge camera-subsector-crash-fix into master

I've lost track how often I've seen crash reports that lead back to P_CameraCheckWater or perhaps P_CameraCheckHeat, almost always seeming to be a crash accessing the camera's subsector.

Naturally I've gotten tired of these kind of crashes, so I've attempted a fix for it now. Basically, I've made sure the camera should have a subsector set initially when a level is loaded. If this by some mad chance doesn't fix the crashes, I still think the game should have been doing this anyway in the level loading code, so whatever. *shrugs*

This is a fix for master, because the camera is always a local thing in the first place.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading