Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int GetCellIndex( int x, int y ){
- int index = 0;
- index = index | 0x8 * (int)( m_isoField[GetIsoFieldIndex(x,y)] > .13f );
- index = index | 0x4 * (int)( m_isoField[GetIsoFieldIndex(x+1,y)] > .13f );
- index = index | 0x2 * (int)( m_isoField[GetIsoFieldIndex(x+1,y+1)] > .13f );
- index = index | 0x1 * (int)( m_isoField[GetIsoFieldIndex(x,y+1)] > .13f );
- return index;
- }
Add Comment
Please, Sign In to add comment