zicodxx reported an assertion failure when powerup duplication was enabled. Local debugging shows that some levels give preplaced powerups a movement type of MT_NONE rather than MT_PHYSICS. Such powerups have undefined data in their mtype.phys_info branch, which confuses the physics simulation code. Powerups only need MT_PHYSICS to bounce away from their spawn site. Preplaced powerups never move. Add assertions that preplaced powerups are MT_NONE. Change the duplication call to create the duplicates with movement MT_NONE. Reported-by: zicodxx <https://github.com/dxx-rebirth/dxx-rebirth/issues/268> |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |