Example #1
0
void start_location::prepare_map( tinymap &m ) const
{
    if( flags().count( "BOARDED" ) > 0 ) {
        m.build_map_cache();
        board_up( m, 0, 0, m.getmapsize() * SEEX, m.getmapsize() * SEEY );
    } else {
        m.translate( t_window_domestic, t_curtains );
    }
}
void start_location::prepare_map( tinymap &m ) const
{
    const int z = m.get_abs_sub().z;
    if( flags().count( "BOARDED" ) > 0 ) {
        m.build_outside_cache( z );
        board_up( m, tripoint( 0, 0, z ), tripoint( m.getmapsize() * SEEX, m.getmapsize() * SEEY, z ) );
    } else {
        m.translate( t_window_domestic, t_curtains );
    }
}