Skip to content

Commit

Permalink
Add missing USE_ZLIB check
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Dec 12, 2024
1 parent bd24006 commit 288d92a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,9 +1062,11 @@ static void SVC_DirectConnect(void)
newcl->framediv = 1;
newcl->settings[CLS_FPS] = sv.framerate;
#endif
#if USE_ZLIB
newcl->q2proto_deflate.z_buffer = svs.z_buffer;
newcl->q2proto_deflate.z_buffer_size = svs.z_buffer_size;
newcl->q2proto_deflate.z_raw = &svs.z;
#endif

q2proto_error_t err = q2proto_init_servercontext(&newcl->q2proto_ctx, &svs.server_info, &parsed_connect);
if (err != Q2P_ERR_SUCCESS) {
Expand Down

0 comments on commit 288d92a

Please sign in to comment.