port
authorhgn <hgodden00@gmail.com>
Fri, 3 Nov 2023 15:17:31 +0000 (15:17 +0000)
committerhgn <hgodden00@gmail.com>
Fri, 3 Nov 2023 15:17:31 +0000 (15:17 +0000)
gameserver.c
network_compression.h

index 49d34038115456edd2d28671adac06f8837cc94e..d91eaafd9f4f0d2d0d0716510220b177d98e9b3f 100644 (file)
@@ -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;
index d4e3655a2098d2c9092bf960fc05372a43d0839a..6ef08f93f69cb7c9de0bc3b9825a0472a4b5ff50 100644 (file)
@@ -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;