Details
When using game.CleanUpMap(), entities marked with EFL_KEEP_ON_RECREATE_ENTITIES via lua are being both preserved and recreated, leading to unintended entity duplication.
Steps to reproduce
- Create an entity and set EFL_KEEP_ON_RECREATE_ENTITIES flag on it
- Call game.CleanUpMap()
- Observe that the flagged entity has been duplicated - both the original entity is preserved and a new copy is created
Details
When using game.CleanUpMap(), entities marked with EFL_KEEP_ON_RECREATE_ENTITIES via lua are being both preserved and recreated, leading to unintended entity duplication.
Steps to reproduce