mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fixup to allow the threads access flag via making it public
Also adds fixup to build script
This commit is contained in:
parent
37cb2e38f6
commit
9e0b970ff9
2 changed files with 5 additions and 5 deletions
|
|
@ -82,7 +82,7 @@ public class ComputerPlayer extends PlayerImpl {
|
||||||
// * use your's CPU cores for best performance
|
// * use your's CPU cores for best performance
|
||||||
// TODO: add server config to control max AI threads (with CPU cores by default)
|
// TODO: add server config to control max AI threads (with CPU cores by default)
|
||||||
// TODO: rework AI implementation to use multiple sims calculation instead one by one
|
// TODO: rework AI implementation to use multiple sims calculation instead one by one
|
||||||
final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = 5;//DebugUtil.AI_ENABLE_DEBUG_MODE ? 1 : 5;
|
public final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = DebugUtil.AI_ENABLE_DEBUG_MODE ? 1 : 5;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ print "Start compiling...\n";
|
||||||
chdir("..");
|
chdir("..");
|
||||||
system("mvn clean install package -DskipTests");
|
system("mvn clean install package -DskipTests");
|
||||||
chdir("Mage.Client");
|
chdir("Mage.Client");
|
||||||
system("mvn assembly:assembly");
|
system("mvn assembly:single");
|
||||||
chdir("../Mage.Server");
|
chdir("../Mage.Server");
|
||||||
system("mvn assembly:assembly");
|
system("mvn assembly:single");
|
||||||
chdir("../Mage.Server.Console");
|
chdir("../Mage.Server.Console");
|
||||||
system("mvn assembly:assembly");
|
system("mvn assembly:single");
|
||||||
chdir("..");
|
chdir("..");
|
||||||
mkdir("temp");
|
mkdir("temp");
|
||||||
chdir("temp");
|
chdir("temp");
|
||||||
|
|
@ -48,4 +48,4 @@ $zip->addFile("startMage.sh");
|
||||||
$zip->writeToFileNamed("../mage-bundle.zip");
|
$zip->writeToFileNamed("../mage-bundle.zip");
|
||||||
chdir("..");
|
chdir("..");
|
||||||
|
|
||||||
rmtree("temp");
|
rmtree("temp");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue