Fixed all GWT errors, released new version
This commit is contained in:
@@ -76,6 +76,8 @@ public class Control extends Module{
|
||||
public Control(){
|
||||
if(Mindustry.args.contains("-debug", false))
|
||||
Vars.debug = true;
|
||||
|
||||
Inputs.useControllers(!gwt);
|
||||
|
||||
log("Total blocks loaded: " + Block.getAllBlocks().size);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ public class DesktopInput extends InputHandler{
|
||||
int endx, endy;
|
||||
private boolean enableHold = false;
|
||||
private boolean beganBreak;
|
||||
private boolean rotated = false;
|
||||
private boolean rotated = false, rotatedAlt;
|
||||
|
||||
@Override public float getCursorEndX(){ return endx; }
|
||||
@Override public float getCursorEndY(){ return endy; }
|
||||
@@ -71,7 +71,12 @@ public class DesktopInput extends InputHandler{
|
||||
}
|
||||
if(!Inputs.getAxisActive("rotate_alt")) rotated = false;
|
||||
|
||||
player.rotation += Inputs.getAxis("rotate");
|
||||
if(!rotatedAlt) {
|
||||
player.rotation += Inputs.getAxis("rotate");
|
||||
rotatedAlt = true;
|
||||
}
|
||||
if(!Inputs.getAxisActive("rotate")) rotatedAlt = false;
|
||||
|
||||
player.rotation = Mathf.mod(player.rotation, 4);
|
||||
|
||||
if(Inputs.keyDown("break")){
|
||||
|
||||
@@ -14,6 +14,8 @@ public class Map{
|
||||
|
||||
public transient Pixmap pixmap;
|
||||
public transient Texture texture;
|
||||
|
||||
public Map(){}
|
||||
|
||||
public int getWidth(){
|
||||
return pixmap.getWidth();
|
||||
|
||||
@@ -152,13 +152,13 @@ public class Maps implements Disposable{
|
||||
maps.clear();
|
||||
}
|
||||
|
||||
private static class ArrayContainer{
|
||||
public static class ArrayContainer{
|
||||
Array<Map> maps;
|
||||
|
||||
ArrayContainer() {
|
||||
public ArrayContainer() {
|
||||
}
|
||||
|
||||
ArrayContainer(Array<Map> maps) {
|
||||
public ArrayContainer(Array<Map> maps) {
|
||||
this.maps = maps;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user