mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Whee, more tests that break things :)
This commit is contained in:
parent
8fe703d747
commit
f496f4d260
3 changed files with 38 additions and 0 deletions
|
@ -304,3 +304,35 @@ hull_t hull_ridge = {
|
|||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
};
|
||||
|
||||
// 1 2
|
||||
// ss\sss/eeee
|
||||
// sss\s/eeeee
|
||||
// 3 ----. 0,0 e
|
||||
// wwwww\eeeee
|
||||
// wwwwww\eeee
|
||||
// 0 -------.--- -20
|
||||
// sssssssssss
|
||||
// sssssssssss
|
||||
static mclipnode_t clipnodes_cave[] = {
|
||||
{ 0, { 1, CONTENTS_SOLID}},
|
||||
{ 1, { 2, 3}},
|
||||
{ 2, {CONTENTS_SOLID, CONTENTS_EMPTY}},
|
||||
{ 3, {CONTENTS_SOLID, CONTENTS_WATER}},
|
||||
};
|
||||
|
||||
static plane_t planes_cave[] = {
|
||||
{{ 0, 0, 1}, -20, 2, 0},
|
||||
{{ 0.6, 0, 0.8}, 0, 3, 0},
|
||||
{{-0.8, 0, 0.6}, 0, 3, 0},
|
||||
{{ 0, 0, 1}, 0, 2, 0},
|
||||
};
|
||||
|
||||
hull_t hull_cave = {
|
||||
clipnodes_cave,
|
||||
planes_cave,
|
||||
0,
|
||||
3,
|
||||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
};
|
||||
|
|
|
@ -11,3 +11,4 @@ extern hull_t hull_covered_step;
|
|||
extern hull_t hull_ramp;
|
||||
extern hull_t hull_hole;
|
||||
extern hull_t hull_ridge;
|
||||
extern hull_t hull_cave;
|
||||
|
|
|
@ -186,6 +186,11 @@ test_t tests[] = {
|
|||
{4, 0, 41}, { 4, 0, 39}, { 0.5, 0, 0, 1, 0, 8}},
|
||||
{"Box, ridge, all solid", &box, &hull_ridge,
|
||||
{4, 41, 0}, { 4, 39, 0}, { 1, 1, 1, 0, 0, 8}},
|
||||
|
||||
{"Box, cave. start solid", &box, &hull_cave,
|
||||
{ 4, 0, -16}, { 4, 0, 0}, { 0.5, 0, 1, 0, 1, 6}},
|
||||
{"Box, cave. start solid", &box, &hull_cave,
|
||||
{-8, 0, -16}, { -8, 0, 0}, { 0.5, 0, 1, 0, 1, 6}},
|
||||
};
|
||||
#define num_tests (sizeof (tests) / sizeof (tests[0]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue