sm64pc/src/engine
MysterD 3908ff3954 Prevent crash in vanish cap switch course
The segfault is hit while trying to render bhvCheckerboardElevatorGroup
when the player first enters the stage.

So here's some background: bhvCheckerboardElevatorGroup is the invisible
parent object that defines where the two platforms will rotate around. It
has a model, but it's never rendered in game. The entity only exists for
a few frames before being removed from the scene.

Here's the theory: Since it is only valid for a few frames, I believe the
model gets deallocated after removal. Since changing the camera precision
makes the camera end up in a slightly different spot, it could be trying
to render the object when precision is set to 3 but not to 1.

Here's the solution: Adding cur_obj_hide() to the start of
bhv_checkerboard_elevator_group_init() prevents the crash

fixes #437
2020-10-11 13:32:02 -07:00
..
behavior_script.c merge refresh 10 2020-06-20 02:49:59 +03:00
behavior_script.h merge refresh 10 2020-06-20 02:49:59 +03:00
geo_layout.c merge refresh 10 2020-06-20 02:49:59 +03:00
geo_layout.h merge refresh 10 2020-06-20 02:49:59 +03:00
graph_node.c refresh 5 2020-01-03 10:38:57 -05:00
graph_node.h Refresh 11 2020-07-05 14:15:43 +03:00
graph_node_manager.c merge refresh 10 2020-06-20 02:49:59 +03:00
level_script.c merge refresh 10 2020-06-20 02:49:59 +03:00
level_script.h merge refresh 10 2020-06-20 02:49:59 +03:00
math_util.c merge refresh 10 2020-06-20 02:49:59 +03:00
math_util.h merge refresh 10 2020-06-20 02:49:59 +03:00
surface_collision.c Prevent crash in vanish cap switch course 2020-10-11 13:32:02 -07:00
surface_collision.h merge refresh 10 2020-06-20 02:49:59 +03:00
surface_load.c Revert "fix crash with dynamic surfaces?" 2020-10-04 02:47:25 +03:00
surface_load.h merge refresh 10 2020-06-20 02:49:59 +03:00