mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- fixed: The portal blockmap's AddLineIntercepts methods needs to check the block's range.
This commit is contained in:
parent
deafa0bce0
commit
75bcec411e
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ static void BuildBlockmap()
|
||||||
|
|
||||||
void FLinePortalTraverse::AddLineIntercepts(int bx, int by)
|
void FLinePortalTraverse::AddLineIntercepts(int bx, int by)
|
||||||
{
|
{
|
||||||
|
if (by < 0 || by >= bmapheight || bx < 0 || bx >= bmapwidth) return;
|
||||||
|
|
||||||
FPortalBlock &block = PortalBlockmap(bx, by);
|
FPortalBlock &block = PortalBlockmap(bx, by);
|
||||||
|
|
||||||
for (unsigned i = 0; i<block.portallines.Size(); i++)
|
for (unsigned i = 0; i<block.portallines.Size(); i++)
|
||||||
|
|
Loading…
Reference in a new issue