From a48a6d2c909406835ea46851890ecd808ecd95d8 Mon Sep 17 00:00:00 2001 From: Kenneth VanderLinde Date: Tue, 19 Nov 2024 09:55:09 -0800 Subject: [PATCH] Remove max size for blast templates --- .../net/rptools/maptool/model/drawing/AbstractTemplate.java | 3 --- .../java/net/rptools/maptool/model/drawing/BlastTemplate.java | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/main/java/net/rptools/maptool/model/drawing/AbstractTemplate.java b/src/main/java/net/rptools/maptool/model/drawing/AbstractTemplate.java index fd1500a148..2c5ce25992 100644 --- a/src/main/java/net/rptools/maptool/model/drawing/AbstractTemplate.java +++ b/src/main/java/net/rptools/maptool/model/drawing/AbstractTemplate.java @@ -57,9 +57,6 @@ protected AbstractTemplate(AbstractTemplate other) { * Class Variables *-------------------------------------------------------------------------------------------*/ - /** Maximum radius value allowed. */ - public static final int MAX_RADIUS = 100; - /** Minimum radius value allowed. */ public static final int MIN_RADIUS = 1; diff --git a/src/main/java/net/rptools/maptool/model/drawing/BlastTemplate.java b/src/main/java/net/rptools/maptool/model/drawing/BlastTemplate.java index 7464cde575..70de52ac8a 100644 --- a/src/main/java/net/rptools/maptool/model/drawing/BlastTemplate.java +++ b/src/main/java/net/rptools/maptool/model/drawing/BlastTemplate.java @@ -98,10 +98,6 @@ public Rectangle getBounds(Zone zone) { * @param relY The Y coordinate of the control square relative to the origin square */ public void setControlCellRelative(int relX, int relY) { - - relX = Math.max(Math.min(relX, MAX_RADIUS), -MAX_RADIUS); - relY = Math.max(Math.min(relY, MAX_RADIUS), -MAX_RADIUS); - int radius = Math.max(Math.abs(relX), Math.abs(relY)); // Number of cells along axis of smaller offset we need to shift the square in order to "center" // the blast