Skip to content

Commit

Permalink
Merge pull request #5060 from kwvanderlinde/bugfix/4994-blast-templat…
Browse files Browse the repository at this point in the history
…e-max-radius

Remove max size for blast templates
  • Loading branch information
cwisniew authored Nov 21, 2024
2 parents c66ed4b + a48a6d2 commit 8b6bafb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b6bafb

Please sign in to comment.