This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 19th, 2013  |  syntax: None  |  size: 0.71 KB  |  views: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 0123456789
  2.        
  3. i = 9: 0123456789
  4. i = 8 //remove 8: 012345679
  5. i = 7: 012345679
  6. i = 6 //remove 6: 01234579
  7.        
  8. for (int i = dArea.size() - 1; i >= 0; i--) {
  9.     if (dArea.get(i).getOwn() == 1) {
  10.         if (dArea.get(i).getSK() == 2) {
  11.             if (dArea.get(i).getX() - dArea.get(i).getW() / 2 > 1350) {
  12.                 dArea.remove(i);
  13.             }
  14.             if (dArea.get(i).getX() + dArea.get(i).getW() / 2 < 0) {
  15.                 dArea.remove(i);
  16.             }
  17.             if (dArea.get(i).getY() - dArea.get(i).getH() / 2 > 685) {
  18.                 dArea.remove(i);
  19.             }
  20.             if (dArea.get(i).getY() + dArea.get(i).getH() / 2 < 0) {
  21.                 dArea.remove(i);
  22.             }
  23.         }
  24.     }
  25. }
clone this paste RAW Paste Data