[fixed]Pickup dynamic lights did not go away

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

[fixed]Pickup dynamic lights did not go away

Post by Enjay »

I noticed this in 0.9.28 which I'm using with my mod because of the shader floor problem but I was able to repeat it in 1.0.03

In a recent game, I noticed that any pickup items that had a dynamic light attached left their dynamic light behind after the item had been picked up - ie the glow was still visible where the pickup had once been. The dynamic lights also seemed to be brighter than normal.

The levels where I noticed the problem are in a hub. What I have discovered is that going backwards and forwards between a level seems to leave a dynamic light behind every time. If you warp straight to the level and go pickup one of the items, the glow goes too. However, if rather than picking up the item, you leave the map by the exit line and come back via an exit line in the other level (easy to do in this case) then go to the item, you will see its glow brighter than normal and when you pick up the item, the glow stays behind. I think that every time you leave/return an extra dynamic light is getting left on the map.

I suspect this will be relevant: most, if not all, the items are dehacked in some way. So it's not regular game pickups or DECORATE ones, but dehacked pickups.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Fixed. The light reinitialization was done in the savegame code. It must be in the code that saves and restores the actual level to work in all cases.
Locked

Return to “Closed Bugs”