From 30b8503ccf791ca08368edc1aff92bcc0db928f3 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 26 Mar 2017 17:46:31 -0600 Subject: [PATCH] qbsp: -convert quake: silence annoying warnings --- qbsp/map.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/qbsp/map.cc b/qbsp/map.cc index 0cd47e12..eb879979 100644 --- a/qbsp/map.cc +++ b/qbsp/map.cc @@ -614,8 +614,10 @@ TexDef_BSPToQuakeEd(const plane_t &faceplane, const texture_t *texture, const fl // self check glm::vec2 uv01_test = texPlaneToUV * p0p1; glm::vec2 uv02_test = texPlaneToUV * p0p2; - checkEq(uv01_test, p0p1_uv, 0.01); - checkEq(uv02_test, p0p2_uv, 0.01); + + // these fail if one of the texture axes is 0 length. +// checkEq(uv01_test, p0p1_uv, 0.01); +// checkEq(uv02_test, p0p2_uv, 0.01); } const texdef_quake_ed_noshift_t res = Reverse_QuakeEd(texPlaneToUV, &faceplane, false); @@ -814,7 +816,10 @@ Reverse_QuakeEd(glm::mat2x2 M, const plane_t *plane, bool preserveX) } } - printf("Warning, Reverse_QuakeEd failed\n"); + // TODO: detect when we expect this to fail, i.e. invalid texture axes (0-length), + // and throw an error if it fails unexpectedly. + + //printf("Warning, Reverse_QuakeEd failed\n"); texdef_quake_ed_noshift_t fail; return fail;