mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Clip the portals when running the test cases.
When the portals are too big, floats break down and break the tests. This might not be much of an issue in real maps, but my tests use "infinite" planes.
This commit is contained in:
parent
2abff68089
commit
ab2ec644d6
1 changed files with 8 additions and 0 deletions
|
@ -477,6 +477,14 @@ run_test (test_t *test)
|
|||
goto nodeleaf_bail;
|
||||
}
|
||||
for (p = portal_list; p; p = p->next) {
|
||||
for (j = 0; j < p->portal->winding->numpoints; j++) {
|
||||
p->portal->winding->points[j][0]
|
||||
= bound (-8192, p->portal->winding->points[j][0], 8192);
|
||||
p->portal->winding->points[j][1]
|
||||
= bound (-8192, p->portal->winding->points[j][1], 8192);
|
||||
p->portal->winding->points[j][2]
|
||||
= bound (-8192, p->portal->winding->points[j][2], 8192);
|
||||
}
|
||||
for (j = 0; j < 2; j++) {
|
||||
int found = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue