BlockThingsIterator gives between sector portal actors twice

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

BlockThingsIterator gives between sector portal actors twice

Post by Gutawer »

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
User avatar
IvanDobrovski
Posts: 83
Joined: Mon Aug 08, 2016 4:05 am

Re: BlockThingsIterator gives between sector portal actors t

Post by IvanDobrovski »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: BlockThingsIterator gives between sector portal actors t

Post by Graf Zahl »

fixed
Post Reply

Return to “Closed Bugs [GZDoom]”