dxx-rebirth/similar
Kp 8d3f47d646 Fix hoard orb handling on player death
Descent tracked hoard orbs by borrowing the player's proximity bomb
slot.  Commit 829e95b6f8 moved proximity
bomb tracking to its own slot, but failed to update the player
death/deres logic accordingly.  This caused multiple inconsistencies
when a player was killed in hoard mode:

- The killed player saw the orb drop as expected.
- The killed player _also_ kept the orb in inventory after respawn,
  because the counter was not reset.
- Other players saw no orb drop.

Fix the inappropriate retention by resetting the orb count in
init_player_stats_new_ship.  Fix the inappropriate failure to drop by
adding a new unconditional field to the player death/deres message.  In
hoard games, use it to pass the orb count.  In other games, ignore it.

Fixes: 829e95b6f8 ("Separate hoard/proximity tracking")
Reported-by: snytek <https://github.com/dxx-rebirth/dxx-rebirth/issues/526>
2020-08-01 18:29:01 +00:00
..
2d Add color_palette_index type alias, to note palette-related uint8_t 2020-07-16 02:31:04 +00:00
3d Replace zip helper function with class template argument deduction 2020-07-16 02:31:04 +00:00
arch Use enum class for gr_blend 2020-07-16 02:31:04 +00:00
editor Fix global array overflow in kbuild.cpp error message 2020-07-22 03:11:18 +00:00
main Fix hoard orb handling on player death 2020-08-01 18:29:01 +00:00
misc Remove static inline declarations from fwd-partial_range.h 2020-06-10 02:25:32 +00:00