removed denorm col tri in wdw (#631)

This commit is contained in:
thecozies
2023-06-05 16:54:03 -05:00
committed by GitHub
parent e9054a6b6b
commit aabad79e46
2 changed files with 5 additions and 2 deletions

View File

@@ -508,7 +508,7 @@ const Collision wdw_seg7_area_1_collision[] = {
COL_VERTEX(-3839, 1300, 1249),
COL_VERTEX(3103, 1428, 3681),
COL_VERTEX(3681, 1428, 3681),
COL_TRI_INIT(SURFACE_DEFAULT, 583),
COL_TRI_INIT(SURFACE_DEFAULT, 582),
COL_TRI(161, 193, 194),
COL_TRI(165, 195, 193),
COL_TRI(165, 193, 161),
@@ -784,7 +784,8 @@ const Collision wdw_seg7_area_1_collision[] = {
COL_TRI(288, 320, 445),
COL_TRI(288, 59, 62),
COL_TRI(286, 320, 288),
COL_TRI(190, 189, 192),
// HackerSM64: denorm removed
// COL_TRI(190, 189, 192),
COL_TRI(289, 188, 190),
COL_TRI(290, 291, 451),
COL_TRI(291, 447, 144),

View File

@@ -14,6 +14,7 @@
#include "game/object_list_processor.h"
#include "surface_load.h"
#include "game/puppyprint.h"
#include "game/debug.h"
#include "config.h"
@@ -273,6 +274,7 @@ static struct Surface *read_surface_data(TerrainData *vertexData, TerrainData **
f32 mag = (sqr(n[0]) + sqr(n[1]) + sqr(n[2]));
// This will never need to be run for custom levels because Fast64 does this step before exporting.
// assert(mag >= NEAR_ZERO, "Denorm tri was found.");
#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS
if (mag < NEAR_ZERO) {
return NULL;