Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void sortIt()
- {
- boolean found = false;
- for( int y = 0; y < 12; y++ )
- {
- for( int x = 0; x < 12; x++ )
- {
- if( items[ y ][ x ].type == ItemType.chaos )
- {
- found = true;
- items[ lastPositionWithNoChaos.y ][ lastPositionWithNoChaos.x ] = items[ y ][ x ];
- break;
- }
- if( found )
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement