From 450fc456be4604ec7624cdc14ecd4959bb0d740c Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 5 May 2018 14:13:21 -0400 Subject: [PATCH] Fixed extra wave time counting down on tutorial --- build.gradle | 2 +- core/src/io/anuke/mindustry/core/Logic.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index c52f703dbbcc..2324b9989522 100644 --- a/build.gradle +++ b/build.gradle @@ -153,7 +153,7 @@ project(":core") { apply plugin: "java" dependencies { - boolean comp = false//System.properties["release"] == null || System.properties["release"] == "false" + boolean comp = System.properties["release"] == null || System.properties["release"] == "false" if(!comp){ println("NOTICE: Compiling release build.") diff --git a/core/src/io/anuke/mindustry/core/Logic.java b/core/src/io/anuke/mindustry/core/Logic.java index e66845828f19..72bb371d7c2f 100644 --- a/core/src/io/anuke/mindustry/core/Logic.java +++ b/core/src/io/anuke/mindustry/core/Logic.java @@ -137,7 +137,7 @@ public void update(){ world.pathfinder().resetPaths(); state.lastUpdated = state.wave + 1; } - }else{ + }else if(!world.getMap().name.equals("tutorial")){ state.extrawavetime -= delta(); } }