Skip to content

Commit

Permalink
修复了小范围扩建、缩小领地时经济计算尺寸不正确问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Jul 22, 2024
1 parent 066d7a3 commit 4706e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.38.8-beta</version>
<version>1.38.9-beta</version>
<packaging>jar</packaging>

<name>Dominion</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,15 @@ public static void contract(AbstractOperator operator, Integer size, String domi
}

private static int vol(int x1, int y1, int z1, int x2, int y2, int z2) {
return (x2 - x1 + 1) * (y2 - y1 + 1) * (z2 - z1 + 1);
return (x2 - x1) * (y2 - y1) * (z2 - z1);
}

private static int vol(int[] cords) {
return vol(cords[0], cords[1], cords[2], cords[3], cords[4], cords[5]);
}

private static int sqr(int x1, int z1, int x2, int z2) {
return (x2 - x1 + 1) * (z2 - z1 + 1);
return (x2 - x1) * (z2 - z1);
}

private static int sqr(int[] cords) {
Expand Down

0 comments on commit 4706e13

Please sign in to comment.