Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (undoIndex>=1) {
- int undoKeeper=undoIndex;
- undoIndex=0;
- for (int i=0;i<undoKeeper;i++) {
- memoryQueue.remove(memoryQueue.size() - 1); //If we change the past (undo some clicks), we can't go back to the future we came from. It becomes erased.
- }
- System.out.println("Cleared memory queue");
- }
Advertisement
Add Comment
Please, Sign In to add comment