Closed lemming104 closed 3 months ago
Good catch. This dev build of Helion currently reuses a lot of these objects in an effort to reduce map load times for the same map when the player dies or is loading a save. The teleport spots are stored separately and weren't being cleared. Should be fixed with this commit
Always nice when the fix is just a one-liner!
I'm not 100% sure, but I think this is some state that isn't getting cleared when the user changes difficulty. Here are the most repeatable repro steps I have been able to come up with.
I am on my own private build, based on GIT SHA 3dc7e42663d4cfdd797b50d0c66540ef1bee6e8c. I have no local changes.
map map23
Expected/Actual: You are teleported to the coordinates shown in the screenshot below, and can continue playing.![helion_20240518_10 21 32 6336](https://github.com/Helion-Engine/Helion/assets/50272946/69ecf30a-e238-4124-aa55-c0819bd3c2dd)
map map23
Expected: You should be teleported to the same coordinates as in the first game. Actual: You are teleported directly on top of a barrel and have a very, very bad day: