Guest User

Untitled

a guest
May 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int GetCellIndex( int x, int y ){
  2. int index = 0;
  3. index = index | 0x8 * (int)( m_isoField[GetIsoFieldIndex(x,y)] > .13f );
  4. index = index | 0x4 * (int)( m_isoField[GetIsoFieldIndex(x+1,y)] > .13f );
  5. index = index | 0x2 * (int)( m_isoField[GetIsoFieldIndex(x+1,y+1)] > .13f );
  6. index = index | 0x1 * (int)( m_isoField[GetIsoFieldIndex(x,y+1)] > .13f );
  7.  
  8. return index;
  9. }
Add Comment
Please, Sign In to add comment