mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 10:25:42 +07:00
Fixed multithreading affecting wave time
This commit is contained in:
parent
61e9611bab
commit
26025a3018
@ -153,7 +153,7 @@ project(":core") {
|
||||
apply plugin: "java"
|
||||
|
||||
dependencies {
|
||||
boolean comp = System.properties["release"] == null || System.properties["release"] == "false"
|
||||
boolean comp = false//System.properties["release"] == null || System.properties["release"] == "false"
|
||||
|
||||
if(!comp){
|
||||
println("NOTICE: Compiling release build.")
|
||||
|
@ -131,14 +131,14 @@ public class Logic extends Module {
|
||||
if(!state.mode.disableWaveTimer){
|
||||
|
||||
if(state.enemies <= 0){
|
||||
if(!world.getMap().name.equals("tutorial")) state.wavetime -= delta();
|
||||
if(!world.getMap().name.equals("tutorial")) state.wavetime -= Timers.delta();
|
||||
|
||||
if(state.lastUpdated < state.wave + 1 && state.wavetime < aheadPathfinding){ //start updating beforehand
|
||||
world.pathfinder().resetPaths();
|
||||
state.lastUpdated = state.wave + 1;
|
||||
}
|
||||
}else if(!world.getMap().name.equals("tutorial")){
|
||||
state.extrawavetime -= delta();
|
||||
state.extrawavetime -= Timers.delta();
|
||||
}
|
||||
}
|
||||
|
||||
|
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,5 @@
|
||||
#Thu May 03 13:02:25 EDT 2018
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-bin.zip
|
||||
|
Loading…
Reference in New Issue
Block a user