@@ -260,7 +260,7 @@ Based on sv_client.c->SV_SendClientGameState
260
260
static void Record_SendSpectatorGamestate ( spectator_t * spectator ) {
261
261
client_t * cl = & spectator -> cl ;
262
262
msg_t msg ;
263
- byte msgBuf [MAX_MSGLEN ];
263
+ byte msgBuf [MAX_MSGLEN_BUF ];
264
264
265
265
if ( SVC_RateLimit ( & cl -> gamestate_rate , 4 , 1000 ) ) {
266
266
return ;
@@ -273,7 +273,7 @@ static void Record_SendSpectatorGamestate( spectator_t *spectator ) {
273
273
cl -> gamestateMessageNum = cl -> netchan .outgoingSequence ;
274
274
275
275
// Initialize message
276
- Record_InitSpectatorMessage ( cl , & msg , msgBuf , sizeof ( msgBuf ) );
276
+ Record_InitSpectatorMessage ( cl , & msg , msgBuf , MAX_MSGLEN );
277
277
278
278
// Write gamestate message
279
279
Record_WriteGamestateMessage ( & sps -> currentBaselines , sv .configstrings , 0 , cl -> reliableSequence , & msg ,
@@ -293,7 +293,7 @@ Based on sv_snapshot.c->SV_SendClientSnapshot
293
293
static void Record_SendSpectatorSnapshot ( spectator_t * spectator ) {
294
294
client_t * cl = & spectator -> cl ;
295
295
msg_t msg ;
296
- byte msg_buf [MAX_MSGLEN ];
296
+ byte msg_buf [MAX_MSGLEN_BUF ];
297
297
spectator_frame_t * current_frame = & spectator -> frames [cl -> netchan .outgoingSequence % PACKET_BACKUP ];
298
298
spectator_frame_t * delta_frame = 0 ;
299
299
int delta_frame_offset = 0 ;
@@ -335,7 +335,7 @@ static void Record_SendSpectatorSnapshot( spectator_t *spectator ) {
335
335
}
336
336
337
337
// Initialize message
338
- Record_InitSpectatorMessage ( cl , & msg , msg_buf , sizeof ( msg_buf ) );
338
+ Record_InitSpectatorMessage ( cl , & msg , msg_buf , MAX_MSGLEN );
339
339
340
340
// Write snapshot message
341
341
Record_WriteSnapshotMessage ( & sps -> frameEntities [current_frame -> frameEntitiesPosition % FRAME_ENTITY_COUNT ],
0 commit comments