Improved geomap admin command.

This commit is contained in:
MobiusDev
2016-06-13 12:28:30 +00:00
parent 019c43a86f
commit 6f22b61ddd
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ public class AdminGeodata implements IAdminCommandHandler
{
final int x = ((activeChar.getX() - L2World.MAP_MIN_X) >> 15) + L2World.TILE_X_MIN;
final int y = ((activeChar.getY() - L2World.MAP_MIN_Y) >> 15) + L2World.TILE_Y_MIN;
activeChar.sendMessage("GeoMap: " + x + "_" + y);
activeChar.sendMessage("GeoMap: " + x + "_" + y + " (" + ((x - L2World.TILE_ZERO_COORD_X) * L2World.TILE_SIZE) + "," + ((y - L2World.TILE_ZERO_COORD_Y) * L2World.TILE_SIZE) + " to " + ((((x - L2World.TILE_ZERO_COORD_X) * L2World.TILE_SIZE) + L2World.TILE_SIZE) - 1) + "," + ((((y - L2World.TILE_ZERO_COORD_Y) * L2World.TILE_SIZE) + L2World.TILE_SIZE) - 1) + ")");
break;
}
}

View File

@@ -52,7 +52,7 @@ public final class L2World
public static final int SHIFT_BY = 11;
public static final int SHIFT_BY_Z = 10;
private static final int TILE_SIZE = 32768;
public static final int TILE_SIZE = 32768;
/** Map dimensions */
public static final int TILE_X_MIN = 11;