mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- fixed: IsPointInLevel must explicitly check for minisegs, which can be one-sided on maps with unclosed sectors.
Obviously, in such a case it is impossible to decide whether a point is really inside the map, so if this happens, behavior is undefined.
This commit is contained in:
parent
7a9b881299
commit
3dcbee6747
1 changed files with 2 additions and 2 deletions
|
@ -2029,9 +2029,9 @@ int IsPointInMap(double x, double y, double z)
|
|||
|
||||
for (uint32_t i = 0; i < subsector->numlines; i++)
|
||||
{
|
||||
// Skip single sided lines.
|
||||
// Skip double sided lines.
|
||||
seg_t *seg = subsector->firstline + i;
|
||||
if (seg->backsector != nullptr) continue;
|
||||
if (seg->backsector != nullptr || seg->linedef == nullptr) continue;
|
||||
|
||||
divline_t dline;
|
||||
P_MakeDivline(seg->linedef, &dline);
|
||||
|
|
Loading…
Reference in a new issue