]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Fix bug where ReadyRestart could cause teamed items to all spawn together
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 3 Oct 2022 06:36:01 +0000 (16:36 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 3 Oct 2022 06:36:01 +0000 (16:36 +1000)
commite1674d502e9d5aa4b0360e9640da88a284084b5a
tree44506905baa7932f90531bb886f48450b00c60b5
parenta1ce0351fb90a2950611e31869da8382f1f2c6cc
Fix bug where ReadyRestart could cause teamed items to all spawn together

For weapons this was subtle: ghost item(s) would appear as well as
the item selected to spawn.

For powerups they would all spawn at once, and/or previously scheduled
spawns were not cancelled.

Fixing this requires leaving the first of the teamed items marked so
Item_FindTeam() will do its job again at ReadyRestart.  This requires
changing the abused effect field to a bitmask other than EF_NODRAW so
that DP will draw the ghost for the marked item.

Some minor cleanups to Item_FindTeam() are included.
qcsrc/server/items/items.qc