From 02a6bf0f955227ece67a166e238d228dd42f8696 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Fri, 17 Sep 2021 14:37:47 +0100 Subject: [PATCH] debug box flag update for puppycam and puppylights --- src/game/puppycam2.c | 4 ++-- src/game/puppylights.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/puppycam2.c b/src/game/puppycam2.c index 633b0cad..2482855e 100644 --- a/src/game/puppycam2.c +++ b/src/game/puppycam2.c @@ -1052,7 +1052,7 @@ static s32 puppycam_check_volume_bounds(struct sPuppyVolume *volume, s32 index) vec3f_set(debugPos[0], sPuppyVolumeStack[index]->pos[0], sPuppyVolumeStack[index]->pos[1], sPuppyVolumeStack[index]->pos[2]); vec3f_set(debugPos[1], sPuppyVolumeStack[index]->radius[0], sPuppyVolumeStack[index]->radius[1], sPuppyVolumeStack[index]->radius[2]); debug_box_color(0x0000FF00); - debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_BOX); + debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_BOX | DEBUG_UCODE_DEFAULT); #endif //Now compare values. if (-sPuppyVolumeStack[index]->radius[0] < pos[0] && pos[0] < sPuppyVolumeStack[index]->radius[0] && @@ -1077,7 +1077,7 @@ static s32 puppycam_check_volume_bounds(struct sPuppyVolume *volume, s32 index) vec3f_set(debugPos[0], sPuppyVolumeStack[index]->pos[0], sPuppyVolumeStack[index]->pos[1], sPuppyVolumeStack[index]->pos[2]); vec3f_set(debugPos[1], sPuppyVolumeStack[index]->radius[0], sPuppyVolumeStack[index]->radius[1], sPuppyVolumeStack[index]->radius[2]); debug_box_color(0x0000FF00); - debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_CYLINDER); + debug_box_rot(debugPos[0], debugPos[1], sPuppyVolumeStack[index]->rot, DEBUG_SHAPE_CYLINDER | DEBUG_UCODE_DEFAULT); #endif distCheck = (dist < sPuppyVolumeStack[index]->radius[0]); diff --git a/src/game/puppylights.c b/src/game/puppylights.c index 16c189cc..bdc06231 100644 --- a/src/game/puppylights.c +++ b/src/game/puppylights.c @@ -125,9 +125,9 @@ void puppylights_iterate(struct PuppyLight *light, Lights1 *src, struct Object * vec3f_set(debugPos[1], light->pos[1][0], light->pos[1][1], light->pos[1][2]); debug_box_color(0x08FF00FF); if (light->flags & PUPPYLIGHT_SHAPE_CYLINDER) - debug_box_rot(debugPos[0], debugPos[1], light->yaw, DEBUG_SHAPE_CYLINDER); + debug_box_rot(debugPos[0], debugPos[1], light->yaw, DEBUG_SHAPE_CYLINDER | DEBUG_UCODE_DEFAULT); else - debug_box_rot(debugPos[0], debugPos[1], light->yaw, DEBUG_SHAPE_BOX); + debug_box_rot(debugPos[0], debugPos[1], light->yaw, DEBUG_SHAPE_BOX | DEBUG_UCODE_DEFAULT); #endif //Check if the object is inside the box, after correcting it for rotation. if (-light->pos[1][0] < lightPos[0] && lightPos[0] < light->pos[1][0] &&