ソースを参照

add a check for toolbuild

Johxz 7 年 前
コミット
fa460b332e
1 ファイル変更5 行追加2 行削除
  1. 5 2
      Templates/BaseGame/game/main.cs.in

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

@@ -42,8 +42,11 @@ setNetPort(0);
 startFileChangeNotifications();
 
 // 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.scanModules( "data", false );