|
|
@ -1904,7 +1904,7 @@ handle temp-entity messages |
|
|
|
void CL_ParseTempEntity( sizebuf_t *msg ) |
|
|
|
void CL_ParseTempEntity( sizebuf_t *msg ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
sizebuf_t buf; |
|
|
|
sizebuf_t buf; |
|
|
|
byte pbuf[256]; |
|
|
|
byte pbuf[2048]; |
|
|
|
int iSize; |
|
|
|
int iSize; |
|
|
|
int type, color, count, flags; |
|
|
|
int type, color, count, flags; |
|
|
|
int decalIndex, modelIndex, entityIndex; |
|
|
|
int decalIndex, modelIndex, entityIndex; |
|
|
@ -1923,6 +1923,10 @@ void CL_ParseTempEntity( sizebuf_t *msg ) |
|
|
|
|
|
|
|
|
|
|
|
decalIndex = modelIndex = entityIndex = 0; |
|
|
|
decalIndex = modelIndex = entityIndex = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this will probably be fatal anyway
|
|
|
|
|
|
|
|
if( iSize > sizeof( pbuf )) |
|
|
|
|
|
|
|
Con_Printf( S_ERROR "%s: Temp buffer overflow!\n", __FUNCTION__ ); |
|
|
|
|
|
|
|
|
|
|
|
// parse user message into buffer
|
|
|
|
// parse user message into buffer
|
|
|
|
MSG_ReadBytes( msg, pbuf, iSize ); |
|
|
|
MSG_ReadBytes( msg, pbuf, iSize ); |
|
|
|
|
|
|
|
|
|
|
|