From 04107d384e31eba5ee5a06f8316daee45da023f3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 15 May 2023 02:11:44 +0300 Subject: [PATCH] engine: client: fix incorrectly parsed timings for TE_TEXTMESSAGE --- engine/client/cl_game.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 498f1371..5997ec5b 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -665,12 +665,12 @@ void CL_ParseTextMessage( sizebuf_t *msg ) text->g2 = MSG_ReadByte( msg ); text->b2 = MSG_ReadByte( msg ); text->a2 = MSG_ReadByte( msg ); - text->fadein = (float)(MSG_ReadShort( msg ) / 256.0f ); - text->fadeout = (float)(MSG_ReadShort( msg ) / 256.0f ); - text->holdtime = (float)(MSG_ReadShort( msg ) / 256.0f ); + text->fadein = (float)(MSG_ReadWord( msg ) / 256.0f ); + text->fadeout = (float)(MSG_ReadWord( msg ) / 256.0f ); + text->holdtime = (float)(MSG_ReadWord( msg ) / 256.0f ); if( text->effect == 2 ) - text->fxtime = (float)(MSG_ReadShort( msg ) / 256.0f ); + text->fxtime = (float)(MSG_ReadWord( msg ) / 256.0f ); else text->fxtime = 0.0f; // to prevent grab too long messages