cleanup: use Java-style array declaration
This commit is contained in:
@@ -596,7 +596,7 @@ public class MapleMap {
|
||||
* @return correspondent coordinate.
|
||||
*/
|
||||
public static String getRoundedCoordinate(double angle) {
|
||||
String directions[] = {"E", "SE", "S", "SW", "W", "NW", "N", "NE", "E"};
|
||||
String[] directions = {"E", "SE", "S", "SW", "W", "NW", "N", "NE", "E"};
|
||||
return directions[ (int)Math.round(( ((double)angle % 360) / 45)) ];
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ public class MapleMapFactory {
|
||||
map.setTimeMob(MapleDataTool.getInt(timeMob.getChildByPath("id")), MapleDataTool.getString(timeMob.getChildByPath("message")));
|
||||
}
|
||||
|
||||
int bounds[] = new int[4];
|
||||
int[] bounds = new int[4];
|
||||
bounds[0] = MapleDataTool.getInt(infoData.getChildByPath("VRTop"));
|
||||
bounds[1] = MapleDataTool.getInt(infoData.getChildByPath("VRBottom"));
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.List;
|
||||
*/
|
||||
public class MapleTVEffect {
|
||||
|
||||
private final static boolean ACTIVE[] = new boolean[Server.getInstance().getWorldsSize()];
|
||||
private final static boolean[] ACTIVE = new boolean[Server.getInstance().getWorldsSize()];
|
||||
|
||||
public static synchronized boolean broadcastMapleTVIfNotActive(MapleCharacter player, MapleCharacter victim, List<String> messages, int tvType){
|
||||
int w = player.getWorld();
|
||||
|
||||
Reference in New Issue
Block a user