dxx-rebirth/common
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 clipper.cpp: Fix build with gcc10 2020-06-09 22:23:48 +02:00
arch Remove outdated joystick preprocessor guards 2020-07-16 02:31:04 +00:00
editor Add color_palette_index type alias, to note palette-related uint8_t 2020-07-16 02:31:04 +00:00
include Use enum class for gr_blend 2020-07-16 02:31:04 +00:00
main Fix hoard orb handling on player death 2020-08-01 18:29:01 +00:00
maths Qualify uses of std::array 2020-05-02 21:18:42 +00:00
mem Refer to <array> directly, not through "compiler-array.h" 2020-05-02 21:18:42 +00:00
misc Remove useless SDL_RWops precision test in SDL2 2020-05-31 23:04:25 +00:00
music Rework ADL dynamic loader 2018-10-15 00:51:53 +00:00
texmap Refer to <array> directly, not through "compiler-array.h" 2020-05-02 21:18:42 +00:00
ui Add color_palette_index type alias, to note palette-related uint8_t 2020-07-16 02:31:04 +00:00
unittest Add unit tests for serialization code 2020-05-17 23:35:25 +00:00