mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Correct hull3 and its tests.
I'd gotten the solid/empty parts backwards.
This commit is contained in:
parent
3e74aa5303
commit
9c6693d567
1 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ hull_t hull2 = {
|
|||
|
||||
mclipnode_t clipnodes3[] = {
|
||||
{ 0, { 2, 1}},
|
||||
{ 1, {CONTENTS_SOLID, CONTENTS_EMPTY}},
|
||||
{ 1, {CONTENTS_EMPTY, CONTENTS_SOLID}},
|
||||
{ 2, {CONTENTS_SOLID, CONTENTS_WATER}},
|
||||
};
|
||||
|
||||
|
@ -152,10 +152,10 @@ test_t tests[] = {
|
|||
{0, &point, &hull2, { 40, 0, 0}, {-88, 0, 0}, {0.0625, 0, 0, 1, 0}},
|
||||
{0, &point, &hull2, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 1, 1, 0}},
|
||||
|
||||
{0, &point, &hull3, {-64, 0, 0}, { 64, 0, 0}, { 0.25, 0, 0, 1, 0}},
|
||||
{0, &point, &hull3, { 0, 0, 0}, { 40, 0, 0}, { 1, 0, 1, 0, 1}},
|
||||
{0, &point, &hull3, { 40, 0, 0}, {-88, 0, 0}, {0.0625, 0, 0, 0, 1}},
|
||||
{0, &point, &hull3, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 1, 0, 1}},
|
||||
{0, &point, &hull3, {-64, 0, 0}, { 64, 0, 0}, { 0.875, 0, 1, 1, 1}},
|
||||
{0, &point, &hull3, { 0, 0, 0}, { 40, 0, 0}, { 1, 0, 0, 1, 1}},
|
||||
{0, &point, &hull3, { 40, 0, 0}, {-88, 0, 0}, {0.5625, 0, 0, 1, 1}},
|
||||
{0, &point, &hull3, { 0, 0, 0}, { 64, 0, 0}, { 0.75, 0, 0, 1, 1}},
|
||||
};
|
||||
#define num_tests (sizeof (tests) / sizeof (tests[0]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue