small error corrections
This commit is contained in:
parent
4ad12a3a59
commit
ea4762c50e
@ -40,8 +40,13 @@ public class nextFrameBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void goToNext() {
|
public void goToNext() {
|
||||||
this.current = this.next.current;
|
try {
|
||||||
this.next = this.next.next;
|
this.current = this.next.current;
|
||||||
|
this.next = this.next.next;
|
||||||
|
} catch (NullPointerException n) {
|
||||||
|
this.setCurrentFrame(null);
|
||||||
|
this.setNext(new nextFrameBuffer());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Frame getCurrentFrame() {
|
public Frame getCurrentFrame() {
|
||||||
|
@ -112,7 +112,7 @@ public class InputBuffer {
|
|||||||
} catch (ArrayIndexOutOfBoundsException e ) {
|
} catch (ArrayIndexOutOfBoundsException e ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for(int i = command.length - 2; i <= 0 && ret; i--) {
|
for(int i = command.length - 2; i >= 0 && ret; i--) {
|
||||||
backCounter = 1;
|
backCounter = 1;
|
||||||
if(startFrameCount - backCounter < 0) {frameToCheck = this.size - (backCounter - startFrameCount);}
|
if(startFrameCount - backCounter < 0) {frameToCheck = this.size - (backCounter - startFrameCount);}
|
||||||
else {frameToCheck = startFrameCount - backCounter;}
|
else {frameToCheck = startFrameCount - backCounter;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user