Skip to content

Commit

Permalink
Tanks v1.4.1 - fixed critical bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aehmttw committed Oct 1, 2022
1 parent 300c1b4 commit 9b1210c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/java/tanks/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public enum Framework {lwjgl, libgdx}
public static double[][] tilesDepth = new double[28][18];

//Remember to change the version in android's build.gradle and ios's robovm.properties
public static final String version = "Tanks v1.4.1b";
public static final String version = "Tanks v1.4.1";
public static final int network_protocol = 46;
public static boolean debug = false;
public static boolean traceAllRays = false;
Expand Down
11 changes: 3 additions & 8 deletions src/main/java/tanks/gui/screen/ScreenChangelog.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,11 @@ public static void setupLogs()
"Bug fixes and other minor improvements\n"
});

new Changelog("v1.4.1a", new String[]
new Changelog("v1.4.1", new String[]
{
"*What's new in Tanks v1.4.1a:\n\n" +
"Fixed a memory leak with custom tank music\n"
});

new Changelog("v1.4.1b", new String[]
{
"*What's new in Tanks v1.4.1b:\n\n" +
"*What's new in Tanks v1.4.1:\n\n" +
"Added bandwidth usage to info bar\n" +
"Fixed a memory leak with custom tank music\n" +
"Fixed a bug with spawning tanks in multiplayer\n"
});
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/tanks/network/ServerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void channelInactive(ChannelHandlerContext ctx)
}
}

System.out.println(eventFrequencies);
//System.out.println(eventFrequencies);
}

@Override
Expand Down Expand Up @@ -147,12 +147,12 @@ public synchronized void sendEvent(INetworkEvent e)
this.sendEvent(e, true);
}

public HashMap<String, Integer> eventFrequencies = new HashMap<>();
//public HashMap<String, Integer> eventFrequencies = new HashMap<>();

public synchronized void sendEvent(INetworkEvent e, boolean flush)
{
eventFrequencies.putIfAbsent(e.getClass().getSimpleName(), 0);
eventFrequencies.put(e.getClass().getSimpleName(), eventFrequencies.get(e.getClass().getSimpleName()) + 1);
//eventFrequencies.putIfAbsent(e.getClass().getSimpleName(), 0);
//eventFrequencies.put(e.getClass().getSimpleName(), eventFrequencies.get(e.getClass().getSimpleName()) + 1);

if (steamID != null)
{
Expand Down

0 comments on commit 9b1210c

Please sign in to comment.