Skip to content

EFL_KEEP_ON_RECREATE_ENTITIES flag causes entity duplication during game.CleanUpMap() #6105

@Riddle1001

Description

@Riddle1001

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

  1. Create an entity and set EFL_KEEP_ON_RECREATE_ENTITIES flag on it
  2. Call game.CleanUpMap()
  3. Observe that the flagged entity has been duplicated - both the original entity is preserved and a new copy is created

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntentionalThe issue is intentional behaviour and not a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions