MCPcopy Create free account
hub / github.com/NetHack/NetHack / clear_map

Function clear_map

win/curses/curswins.c:952–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950/* Init map array to blanks */
951
952static void
953clear_map(void)
954{
955 int x, y;
956
957 for (x = 0; x < COLNO; x++) {
958 for (y = 0; y < ROWNO; y++) {
959 map[y][x].ch = ' ';
960 map[y][x].color = NO_COLOR;
961 map[y][x].attr = A_NORMAL;
962 map[y][x].unicode_representation = NULL;
963 }
964 }
965}
966
967
968/* Determine visible boundaries of map, and determine if it needs to be

Callers 2

curses_putchFunction · 0.85
curses_clear_nhwinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected