Advertisement
Le_BuG63

Untitled

Jan 31st, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1.     if (color == COLOR_WHITE) {
  2.         int x, y;
  3.  
  4.         map_add_cell(map, row, col, COLOR_BLACK);
  5.  
  6.         for (x = 0; x < map->ncell_width; ++x)
  7.             for (y = (col > ((map->ncell_height - 5)) ? map->ncell_height + 5 : col); y < col + 5; ++y)
  8.                 map_del_cell(map, x, y);
  9.     }
  10.     else if (color == COLOR_DARKGREY) {
  11.         int x, y;
  12.         for (x = 0; x < map->ncell_width; ++x)
  13.             for (y = 0; y < map->ncell_height; ++y)
  14.                 map_del_cell(map, x, y);
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement