Skip to content

Commit fbb5dd5

Browse files
committed
Comment on confusing NET_EnableNetworking calls
1 parent 077a8bb commit fbb5dd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/server/sv_init.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ void SV_Startup()
345345

346346
Cvar_Set( "sv_running", "1" );
347347
#ifndef BUILD_SERVER
348+
// For clients, reconfigure to open server ports.
348349
NET_EnableNetworking( true );
349350
#endif
350351

@@ -767,6 +768,7 @@ void SV_Shutdown( const char *finalmsg )
767768

768769
Cvar_Set( "sv_running", "0" );
769770
#ifndef BUILD_SERVER
771+
// For clients, reconfigure to close server ports.
770772
NET_EnableNetworking( false );
771773
#endif
772774

0 commit comments

Comments
 (0)