- if(position == last_contiguous && last_contiguous < map_size )
- {
- int i;
- for(i = position + 1; i < map_size && map[i]; i++)
- {
- ;
- }
- last_contiguous = i;
+ if( position == last_contiguous && last_contiguous < map_size ) {
+ while( last_contiguous < map_size && map[last_contiguous] )
+ ++last_contiguous;
+ if( last_contiguous >= map_size ) update_gui = 1;