1.2.1 : small fix

This commit is contained in:
Klemek
2018-12-03 00:22:52 +01:00
parent 4467d13da1
commit bbce00b7f2
6 changed files with 4 additions and 5 deletions
Binary file not shown.
Binary file not shown.
-2
View File
@@ -1,2 +0,0 @@
mvn clean package && del download\*.jar && xcopy /Y target\*.jar download && git add download/*.jar
pause
+2 -1
View File
@@ -6,7 +6,7 @@
<groupId>fr.klemek</groupId> <groupId>fr.klemek</groupId>
<artifactId>mapping</artifactId> <artifactId>mapping</artifactId>
<version>1.2</version> <version>1.2.1</version>
<repositories> <repositories>
<repository> <repository>
@@ -80,6 +80,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version> <version>3.1.0</version>
<configuration> <configuration>
<outputDirectory>download</outputDirectory>
<archive> <archive>
<manifest> <manifest>
<mainClass>fr.klemek.mapping.Launch</mainClass> <mainClass>fr.klemek.mapping.Launch</mainClass>
@@ -9,7 +9,7 @@ import javax.swing.*;
class MainWindow extends JFrame { class MainWindow extends JFrame {
static final String FILE_NAME = "mapping.csv"; static final String FILE_NAME = "mapping.csv";
private static final String VERSION = "1.2"; private static final String VERSION = "1.2.1";
private static final int DEFAULT_SIZE = 17; private static final int DEFAULT_SIZE = 17;
private static final String INFO_TEXT = "" + private static final String INFO_TEXT = "" +
"<html>" + "<html>" +
+1 -1
View File
@@ -83,7 +83,7 @@ class Map {
for (int y = 0; y < newSize; y++) { for (int y = 0; y < newSize; y++) {
if (x < this.m.length && y < this.m.length) if (x < this.m.length && y < this.m.length)
tm[x][y] = this.m[x][y]; tm[x][y] = this.m[x][y];
if (x < this.m2.length && y < this.m2.length) if (x < this.m2.length && y < this.m2.length && x < tm2.length && y < tm2.length)
tm2[x][y] = this.m2[x][y]; tm2[x][y] = this.m2[x][y];
} }
this.m = tm; this.m = tm;