mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
engine: client: fix incorrectly parsed timings for TE_TEXTMESSAGE
This commit is contained in:
parent
3a0f1763fb
commit
04107d384e
@ -665,12 +665,12 @@ void CL_ParseTextMessage( sizebuf_t *msg )
|
|||||||
text->g2 = MSG_ReadByte( msg );
|
text->g2 = MSG_ReadByte( msg );
|
||||||
text->b2 = MSG_ReadByte( msg );
|
text->b2 = MSG_ReadByte( msg );
|
||||||
text->a2 = MSG_ReadByte( msg );
|
text->a2 = MSG_ReadByte( msg );
|
||||||
text->fadein = (float)(MSG_ReadShort( msg ) / 256.0f );
|
text->fadein = (float)(MSG_ReadWord( msg ) / 256.0f );
|
||||||
text->fadeout = (float)(MSG_ReadShort( msg ) / 256.0f );
|
text->fadeout = (float)(MSG_ReadWord( msg ) / 256.0f );
|
||||||
text->holdtime = (float)(MSG_ReadShort( msg ) / 256.0f );
|
text->holdtime = (float)(MSG_ReadWord( msg ) / 256.0f );
|
||||||
|
|
||||||
if( text->effect == 2 )
|
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;
|
else text->fxtime = 0.0f;
|
||||||
|
|
||||||
// to prevent grab too long messages
|
// to prevent grab too long messages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user