mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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)
|
||||
{
|
||||
if (by < 0 || by >= bmapheight || bx < 0 || bx >= bmapwidth) return;
|
||||
|
||||
FPortalBlock &block = PortalBlockmap(bx, by);
|
||||
|
||||
for (unsigned i = 0; i<block.portallines.Size(); i++)
|
||||
|
|
Loading…
Reference in a new issue