BlockThingsIterator gives between sector portal actors twice

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!

BlockThingsIterator gives between sector portal actors twice

Postby Gutawer » Fri Jun 01, 2018 12:17 pm

I've noticed that a ZScript BlockThingsIterator gives actors that are in between a sector portal boundary twice, meaning that any code using a BlockThingsIterator would run code on these actors twice, when they were only meant to run once. I've attached a pk3 exemplifying this (you'll have to move around a bit to become properly between portal boundaries, then the Player and Cacodemon will appear twice in the printed BlockThingsIterator output - if you crouch, each actor will only be printed once, which is what is supposed to happen).
You do not have the required permissions to view the files attached to this post.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests