mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed crash in find_mario_floor_and_ceil()
This commit is contained in:
parent
c21aa2d85f
commit
6378681e96
1 changed files with 2 additions and 0 deletions
|
|
@ -7150,6 +7150,8 @@ s32 rotate_camera_around_walls(struct Camera *c, Vec3f cPos, s16 *avoidYaw, s16
|
||||||
*/
|
*/
|
||||||
void find_mario_floor_and_ceil(struct PlayerGeometry *pg) {
|
void find_mario_floor_and_ceil(struct PlayerGeometry *pg) {
|
||||||
if (!pg) { return; }
|
if (!pg) { return; }
|
||||||
|
if (!sMarioCamState) { return; }
|
||||||
|
|
||||||
struct Surface *surf = NULL;
|
struct Surface *surf = NULL;
|
||||||
s16 tempCheckingSurfaceCollisionsForCamera = gCheckingSurfaceCollisionsForCamera;
|
s16 tempCheckingSurfaceCollisionsForCamera = gCheckingSurfaceCollisionsForCamera;
|
||||||
gCheckingSurfaceCollisionsForCamera = TRUE;
|
gCheckingSurfaceCollisionsForCamera = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue