BlockThingsIterator gives between sector portal actors twice
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
BlockThingsIterator gives between sector portal actors twice
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).
- Attachments
-
- BlockThingsIteratorTest.pk3
- (1.83 KiB) Downloaded 89 times
- IvanDobrovski
- Posts: 83
- Joined: Mon Aug 08, 2016 4:05 am
Re: BlockThingsIterator gives between sector portal actors t
I've recently encountered issue in the form of a very large monster occupying parts in both sector portals and being hit with a substantially large radius explosion damage, taking the damage twice. Hopefully this gets looked at.