From ef8a6da15251136b14792f3ae36778d03f476732 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 25 May 2022 18:01:33 -0700 Subject: [PATCH] Remove debug position stuff for bettercam --- src/game/bettercamera.inc.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/game/bettercamera.inc.h b/src/game/bettercamera.inc.h index ae75d64f..fef2bf97 100644 --- a/src/game/bettercamera.inc.h +++ b/src/game/bettercamera.inc.h @@ -482,16 +482,6 @@ static void newcam_update_values(void) { } } -static void debug_pos(f32 x, f32 y, f32 z, u8 hit) { // DO NOT COMMIT - if(gMarioStates[0].marioObj == NULL) { return; } - struct Object* obj = spawn_object(gMarioStates[0].marioObj, hit ? MODEL_RED_COIN : MODEL_YELLOW_COIN, bhvSparkle); - if (obj == NULL) { return; } - obj->oPosX = x; - obj->oPosY = y; - obj->oPosZ = z; - obj_scale(obj, 0.5f); -} - static void newcam_collision(void) { // check if we can see player Vec3f up = { 0, 1, 0 }; @@ -549,7 +539,6 @@ static void newcam_collision(void) { struct Surface* surf; Vec3f hitpos; find_surface_on_ray(camorig, camray, &surf, hitpos); - debug_pos(camorig[0], camorig[1], camorig[2], surf != NULL); if (surf == NULL) { allhit = false;