mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Bugfixes
This commit is contained in:
parent
27e9901d05
commit
0b08eb72a6
@ -83,7 +83,7 @@ public class MendProjector extends Block{
|
|||||||
|
|
||||||
for(int x = -tileRange + tile.x; x <= tileRange + tile.x; x++){
|
for(int x = -tileRange + tile.x; x <= tileRange + tile.x; x++){
|
||||||
for(int y = -tileRange + tile.y; y <= tileRange + tile.y; y++){
|
for(int y = -tileRange + tile.y; y <= tileRange + tile.y; y++){
|
||||||
if(Mathf.dst(x, y, tile.x, tile.y) > realRange) continue;
|
if(Mathf.dst(x, y, tile.x, tile.y) > tileRange) continue;
|
||||||
|
|
||||||
Tile other = world.tile(x, y);
|
Tile other = world.tile(x, y);
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ public class MendProjector extends Block{
|
|||||||
|
|
||||||
Draw.alpha(1f);
|
Draw.alpha(1f);
|
||||||
Lines.stroke((2f * f + 0.2f)* entity.heat);
|
Lines.stroke((2f * f + 0.2f)* entity.heat);
|
||||||
Lines.circle(tile.drawx(), tile.drawy(), (1f-f) * 9f);
|
Lines.circle(tile.drawx(), tile.drawy(), ((1f-f) * 8f) * size/2f);
|
||||||
|
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ import io.anuke.arc.Core;
|
|||||||
import io.anuke.arc.Events;
|
import io.anuke.arc.Events;
|
||||||
import io.anuke.arc.collection.Array;
|
import io.anuke.arc.collection.Array;
|
||||||
import io.anuke.arc.collection.ObjectSet;
|
import io.anuke.arc.collection.ObjectSet;
|
||||||
import io.anuke.mindustry.entities.Effects;
|
|
||||||
import io.anuke.arc.files.FileHandle;
|
import io.anuke.arc.files.FileHandle;
|
||||||
import io.anuke.arc.util.*;
|
import io.anuke.arc.util.*;
|
||||||
import io.anuke.arc.util.CommandHandler.Command;
|
import io.anuke.arc.util.CommandHandler.Command;
|
||||||
@ -13,6 +12,7 @@ import io.anuke.arc.util.CommandHandler.Response;
|
|||||||
import io.anuke.arc.util.CommandHandler.ResponseType;
|
import io.anuke.arc.util.CommandHandler.ResponseType;
|
||||||
import io.anuke.arc.util.Timer.Task;
|
import io.anuke.arc.util.Timer.Task;
|
||||||
import io.anuke.mindustry.core.GameState.State;
|
import io.anuke.mindustry.core.GameState.State;
|
||||||
|
import io.anuke.mindustry.entities.Effects;
|
||||||
import io.anuke.mindustry.entities.type.Player;
|
import io.anuke.mindustry.entities.type.Player;
|
||||||
import io.anuke.mindustry.game.*;
|
import io.anuke.mindustry.game.*;
|
||||||
import io.anuke.mindustry.game.EventType.GameOverEvent;
|
import io.anuke.mindustry.game.EventType.GameOverEvent;
|
||||||
@ -308,7 +308,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
|
|
||||||
handler.register("difficulty", "<difficulty>", "Set game difficulty.", arg -> {
|
handler.register("difficulty", "<difficulty>", "Set game difficulty.", arg -> {
|
||||||
try{
|
try{
|
||||||
state.rules.waveSpacing = Difficulty.valueOf(arg[0]).waveTime;
|
state.rules.waveSpacing = Difficulty.valueOf(arg[0]).waveTime * 60 * 60 * 2;
|
||||||
info("Difficulty set to '{0}'.", arg[0]);
|
info("Difficulty set to '{0}'.", arg[0]);
|
||||||
}catch(IllegalArgumentException e){
|
}catch(IllegalArgumentException e){
|
||||||
err("No difficulty with name '{0}' found.", arg[0]);
|
err("No difficulty with name '{0}' found.", arg[0]);
|
||||||
@ -692,6 +692,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
info("&lcOpened a server on port {0}.", Core.settings.getInt("port"));
|
info("&lcOpened a server on port {0}.", Core.settings.getInt("port"));
|
||||||
}catch(BindException e){
|
}catch(BindException e){
|
||||||
Log.err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
|
Log.err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
|
||||||
|
state.set(State.menu);
|
||||||
}catch(IOException e){
|
}catch(IOException e){
|
||||||
err(e);
|
err(e);
|
||||||
state.set(State.menu);
|
state.set(State.menu);
|
||||||
|
Loading…
Reference in New Issue
Block a user