lib/proceduralDunGen.h
///Replace WALL with FLOOR for 'length' tiles in direction inert.dir at location inert(row,col)
Replace WALL with FLOOR for 'length' tiles in direction inert.dir at location inert(row,col)
Replace WALL with FLOOR for ' length ' tiles in direction inert . dir at location inert ( row col )
void buildPath(int **map, struct inertPoint inert, int length)
{
    if(length < 1) return;
    if (inert.dir == NORTH)
        while(length-- != 0)
            map[inert.row - length][inert.col] = FLOOR;
    if (inert.dir == SOUTH)
        while(length-- != 0)
            map[inert.row + length][inert.col] = FLOOR;
    if (inert.dir == WEST)
        while(length-- != 0)
            map[inert.row][inert.col - length] = FLOOR;
    if (inert.dir == EAST)
        while(length-- != 0)
            map[inert.row][inert.col + length] = FLOOR;
}
void buildPath ( int * * map , struct inertPoint inert , int length ) { if ( length < 1 ) return ; if ( inert . dir == NORTH ) while ( length -- != 0 ) map [ inert . row - length ] [ inert . col ] = FLOOR ; if ( inert . dir == SOUTH ) while ( length -- != 0 ) map [ inert . row + length ] [ inert . col ] = FLOOR ; if ( inert . dir == WEST ) while ( length -- != 0 ) map [ inert . row ] [ inert . col - length ] = FLOOR ; if ( inert . dir == EAST ) while ( length -- != 0 ) map [ inert . row ] [ inert . col + length ] = FLOOR ; }
Replace WALL with FLOOR for 'length' tiles in direction inert.dir at location inert(row,col)
Replace WALL with FLOOR for ' length ' tiles in direction inert . dir at location inert ( row col )