Fixed multithreading affecting wave time

This commit is contained in:
Anuken 2018-05-09 16:58:53 -07:00
parent 61e9611bab
commit 26025a3018
3 changed files with 4 additions and 5 deletions

View File

@ -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.")

View File

@ -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();
}
}

View File

@ -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