2
0
Эх сурвалжийг харах

Merge pull request #2180 from John3/checkToolBuild

add a check for toolbuild
Areloch 7 жил өмнө
parent
commit
c4247b5b24

+ 5 - 2
Templates/BaseGame/game/main.cs.in

@@ -42,8 +42,11 @@ setNetPort(0);
 startFileChangeNotifications();
 startFileChangeNotifications();
 
 
 // If we have editors, initialize them here as well
 // If we have editors, initialize them here as well
-if(isFile("tools/main.cs") && !$isDedicated)
-	exec("tools/main.cs");
+if (isToolBuild())
+{
+   if(isFile("tools/main.cs") && !$isDedicated)
+      exec("tools/main.cs");
+}
 	
 	
 ModuleDatabase.setModuleExtension("module");
 ModuleDatabase.setModuleExtension("module");
 ModuleDatabase.scanModules( "data", false );
 ModuleDatabase.scanModules( "data", false );