Clientside demo fixes
I fixed a few bugs that I noticed that happen when watching clientside demos:
-
A regression caused by e601fd00bcbe that would reset the name of the
consoleplayer
to "player" while watching a clientside demo. -
While in free spectate mode, the HUD (i.e.
st_hud.cpp
) is drawn as though theconsoleplayer
is the display player. However, when the HUD is refreshed, this isn't the case and the free spectator player is used instead. According to https://zandronum.com/tracker/view.php?id=4340, this can also cause the client to crash. For the sake of consistency, the display player should be used for refreshing and rendering the HUD (in this case, theconsoleplayer
). -
Although voice chat isn't used at all in demos, the "talking" status of the
consoleplayer
still updated during playback, even though it shouldn't.