Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. int i,j;
  2.     while(h>1){
  3.         m = int(h/2);
  4.         i = m;
  5.  
  6.         //square values
  7.         while(i < tmap_size-1){
  8.             j = m;
  9.             while(j < tmap_size-1){
  10.                 tmap[i][j] = get_sqr_avg(i,j,m);
  11.                 j+=(m*2);
  12.             }
  13.             i+=(m*2);
  14.         }
  15.  
  16.         //diamond values
  17.         bool odd = false;
  18.         i = 0;
  19.         while(i <= tmap_size-1){
  20.             if(!odd) j = m;
  21.             else j = 0;
  22.             while(j <= tmap_size-1){
  23.                 tmap[i][j] = get_dia_avg(i,j,m);
  24.                 j+=(m*2);
  25.             }
  26.             i += m;
  27.             if(odd) odd = false;
  28.             else odd = true;
  29.         }
  30.         random_offset *= offset_dr;
  31.         if(random_offset<1) random_offset = 1;
  32.  
  33.         if(h == 2){
  34.             h = 0;
  35.         }
  36.         else h /= 2;
  37.  
  38.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top