Fix air count calculation error
This commit is contained in:
parent
96cdf1230e
commit
270b7986ac
@ -192,8 +192,15 @@ public abstract class CharFaweChunk<T, V extends FaweQueue> extends FaweChunk<T>
|
|||||||
if (vs == null) {
|
if (vs == null) {
|
||||||
vs = this.ids[i] = new char[4096];
|
vs = this.ids[i] = new char[4096];
|
||||||
this.count[i]++;
|
this.count[i]++;
|
||||||
} else if (vs[j] == 0) {
|
} else {
|
||||||
|
switch (vs[j]) {
|
||||||
|
case 0:
|
||||||
this.count[i]++;
|
this.count[i]++;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
this.air[i]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -231,8 +238,15 @@ public abstract class CharFaweChunk<T, V extends FaweQueue> extends FaweChunk<T>
|
|||||||
if (vs == null) {
|
if (vs == null) {
|
||||||
vs = this.ids[i] = new char[4096];
|
vs = this.ids[i] = new char[4096];
|
||||||
this.count[i]++;
|
this.count[i]++;
|
||||||
} else if (vs[j] == 0) {
|
} else {
|
||||||
|
switch (vs[j]) {
|
||||||
|
case 0:
|
||||||
this.count[i]++;
|
this.count[i]++;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
this.air[i]--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user