Fix player sprite disappearing and chat indicator using the wrong sprite when typing.

This commit is contained in:
Jordon Moss 2020-04-09 23:03:18 -03:00 committed by Christoph Oelckers
parent 658a96ce19
commit 79d2bb1bb8

View file

@ -3747,8 +3747,9 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t ourz, int32_t oura
if (g_player[playerNum].input->extbits & (1 << 7) && !ud.pause_on && spritesortcnt < maxspritesonscreen)
{
auto const playerTyping = t;
auto const playerTyping = &tsprite[spritesortcnt];
*playerTyping = *t;
playerTyping->statnum = TSPR_TEMP;
playerTyping->cstat = 0;
playerTyping->picnum = RESPAWNMARKERGREEN;