BlockLinesIterator could be treated as a Line [4.8.2]

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Posts: 1603
Joined: Mon Jun 12, 2017 12:57 am

BlockLinesIterator could be treated as a Line [4.8.2]

Post by Apeirogon »

Test example.
Start new game with it and type in console 'netevent bug'.


Code: Select all

            BlockLinesIterator it = BlockLinesIterator.CreateFromPos(players[e.player].mo.pos, 64, 64);
            array<line> arr; arr.clear();

            for(int i = 0; i < arr.size(); i++)
                console.printf("line index "..arr[i].index() );

It would print 'line index 14' several times into console on map01.
You do not have the required permissions to view the files attached to this post.

Return to “Bugs [GZDoom]”