Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int x = 0; x<console_width; x++)
- {
- for(int y = 5; y<console_height; y++)
- {
- for(int rx = x-1; rx<x+2; rx++)
- {
- for(int ry = y-1; ry<y+2; ry++)
- {
- //checking the extremes
- WrapePos(rx,ry);
- if((rx > -1 && rx < console_width-1)&&(ry > -1 && ry < console_height-1))
- {
- //checking the cell neighbours
- if(console_buffer[rx+console_width*ry].Attributes == 0)
- {
- if(!(x == rx && y == ry))
- uicheck++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement