mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-03-15 12:10:23 +08:00
修复了小范围扩建、缩小领地时经济计算尺寸不正确问题
This commit is contained in:
parent
066d7a389b
commit
4706e1325a
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -295,7 +295,7 @@ public class DominionController {
|
||||
}
|
||||
|
||||
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) {
|
||||
@ -303,7 +303,7 @@ public class DominionController {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user