SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.47k stars 472 forks source link

[Bug]: Level.spawn() function doesn't work after using a door #2956

Closed Eauix closed 1 month ago

Eauix commented 1 month ago

SuperTux Version

SuperTux-v0.6.3-1251-g1fa2a76c8

System Information

Windows 10, 64bit

Expected Behavior

The spawning function works in any normal circumstances

Actual Behavior

If you enter a door in your level, the spawning function will no longer work in the level until you exit and enter the level again (restarting the level doesn't solve the problem)

https://github.com/SuperTux/supertux/assets/145238217/9c0fe420-b96e-422b-9f51-c44c9697ac4f

Steps To Reproduce Actual Behavior

  1. Place a door that leads to any spawnpoint
  2. Place a script trigger or a switch with a Level.spawn() function that leads to any spawnpoint
  3. Use the switch to go to its destination
  4. Use the door to go to its destination
  5. Use the switch again, it will not do anything

Additional Information

No response

Guidelines For Reporting Issues