From 389034bf1a2be157fa8103bfbb4b4c7741fc9388 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 5 Sep 2018 09:36:25 -0400 Subject: [PATCH] Fixed PvP matches not ending / Removed PvP core shield --- .../src/io/anuke/mindustry/game/GameMode.java | 1 + .../anuke/mindustry/server/ServerControl.java | 27 +++---------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/core/src/io/anuke/mindustry/game/GameMode.java b/core/src/io/anuke/mindustry/game/GameMode.java index a50476a6d7..ec52319af4 100644 --- a/core/src/io/anuke/mindustry/game/GameMode.java +++ b/core/src/io/anuke/mindustry/game/GameMode.java @@ -23,6 +23,7 @@ public enum GameMode{ isPvp = true; hidden = true; enemyCoreBuildRadius = 600f; + enemyCoreShieldRadius = 0f; respawnTime = 60 * 10; }}; diff --git a/server/src/io/anuke/mindustry/server/ServerControl.java b/server/src/io/anuke/mindustry/server/ServerControl.java index eea00c8be0..522f06d469 100644 --- a/server/src/io/anuke/mindustry/server/ServerControl.java +++ b/server/src/io/anuke/mindustry/server/ServerControl.java @@ -2,7 +2,6 @@ package io.anuke.mindustry.server; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.utils.Array; -import com.badlogic.gdx.utils.IntMap; import io.anuke.mindustry.core.GameState.State; import io.anuke.mindustry.entities.Player; import io.anuke.mindustry.game.Difficulty; @@ -14,7 +13,6 @@ import io.anuke.mindustry.gen.Call; import io.anuke.mindustry.io.SaveIO; import io.anuke.mindustry.maps.Map; import io.anuke.mindustry.net.Administration.PlayerInfo; -import io.anuke.mindustry.net.EditLog; import io.anuke.mindustry.net.Net; import io.anuke.mindustry.net.Packets.KickReason; import io.anuke.mindustry.net.TraceInfo; @@ -778,28 +776,6 @@ public class ServerControl extends Module{ info("Nobody with that name could be found."); } }); - - handler.register("rollback", "", "Rollback the block edits in the world", arg -> { - if(!state.is(State.playing)){ - err("Open the server first."); - return; - } - - if(!Strings.canParsePostiveInt(arg[0])){ - err("Please input a valid, positive, number of times to rollback"); - return; - } - - int rollbackTimes = Integer.valueOf(arg[0]); - IntMap> editLogs = netServer.admins.getEditLogs(); - if(editLogs.size == 0){ - err("Nothing to rollback!"); - return; - } - - //netServer.admins.rollbackWorld(rollbackTimes); - info("Rollback done!"); - }); } private void readCommands(){ @@ -910,6 +886,9 @@ public class ServerControl extends Module{ @Override public void update(){ + if(!inExtraRound){ + checkPvPGameOver(); + } if(state.is(State.playing) && world.getSector() != null && !inExtraRound && !debug){ //all assigned missions are complete