Browse Source

Change to main.cs so the client/server core module execs after game modules have loaded

Areloch 6 năm trước cách đây
mục cha
commit
7c72520308

+ 3 - 0
Templates/BaseGame/game/main.cs.in

@@ -25,6 +25,9 @@ ModuleDatabase.LoadExplicit( "CoreModule" );
 ModuleDatabase.scanModules( "data", false );
 ModuleDatabase.scanModules( "data", false );
 ModuleDatabase.LoadGroup( "Game" );
 ModuleDatabase.LoadGroup( "Game" );
 
 
+//Finally, initialize the client/server structure
+ModuleDatabase.LoadExplicit( "Core_ClientServer" );
+
 if( !$isDedicated )
 if( !$isDedicated )
 {
 {
    // Start rendering and stuff.
    // Start rendering and stuff.