Bug #1372

Missing name in awards screen when player has disconnected

Added by Spyhawk about 1 month ago. Updated about 1 month ago.

Status:Fixed% Done:

100%

Priority:LowSpent time:-
Assignee:-
Category:Mod CGAME
Target version:2.77
OS: Arch:

Description

Awards are computed at the end of map, right before intermission and sent as a series of numbers to client (award id, player slot id, score in CS_ENDGAME_STATS). When a rewarded player disconnects at the beginning of intermission, when other clients already received the awards string but before they clicked the "more" button to display the "roll of honor" screen, the slot id will be unused, and no name will be displayed for the award.

Possible solution: build a copy of list of players name right after the CS_ENDGAME_STATS string is parsed, and use it to display the players names rather than matching with slot id when the "more" button is clicked.

Associated revisions

Revision 79586990
Added by Spyhawk about 1 month ago

cgame: fixed empty name when awarded players disconnect early, fixes #1372

History

#1 Updated by Spyhawk about 1 month ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF