From 7338016c5cf8bffb8e490b359b7ee02cbcb86416 Mon Sep 17 00:00:00 2001 From: hgn Date: Fri, 3 Nov 2023 15:17:31 +0000 Subject: [PATCH] port --- gameserver.c | 2 +- network_compression.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gameserver.c b/gameserver.c index 49d3403..d91eaaf 100644 --- a/gameserver.c +++ b/gameserver.c @@ -736,7 +736,7 @@ int main( int argc, char *argv[] ){ vg_warn( "Running without user authentication.\n" ); } - if( !SteamGameServer_Init( 0, 27400, 27401, + if( !SteamGameServer_Init( 0, NETWORK_PORT+1, NETWORK_PORT, gameserver.auth_mode, "1.0.0.0" ) ){ vg_error( "SteamGameServer_Init failed\n" ); return 0; diff --git a/network_compression.h b/network_compression.h index d4e3655..6ef08f9 100644 --- a/network_compression.h +++ b/network_compression.h @@ -28,7 +28,7 @@ static void bitpack_bytes( bitpack_ctx *ctx, u32 bytes, void *data ){ if( index < ctx->buffer_len ) ext[i] = ctx->buffer[index]; else - return; + ext[i] = 0x00; } } ctx->bytes += bytes; -- 2.25.1