Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.51 KB | None | 0 0
  1.              if (value >= 128) {
  2.                     for (int i = 0; i < value - 128; i++) {
  3.                         tiles.get(tile++).terrianHeight = (byte) (lastValue);
  4.                     }
  5.                 }
  6.             }
  7.  
  8.             lastValue = 64;
  9.             for (int w = 0; w < 48; w++) {
  10.                 for (int h = 0; h < 48; h++) {
  11.                     lastValue = tiles.get(h * 48 + w).terrianHeight + lastValue & 0x7f;
  12.                     tiles.get(h * 48 + w).terrianHeight = (byte) (lastValue * 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement