Navigation Menu

Skip to content

Commit

Permalink
Use the correct memory according to build type
Browse files Browse the repository at this point in the history
The TILES and CURSES memory are separate things.  We were using the
TILES memory for both types of build.  Instead, use the appropriate one.
  • Loading branch information
jbytheway committed Dec 28, 2018
1 parent 6dcb1bb commit c884a95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/map.cpp
Expand Up @@ -1345,7 +1345,11 @@ uint8_t map::get_known_connections( const tripoint &p, int connect_group ) const
uint8_t val = 0;
auto const is_memorized =
[&]( const tripoint & q ) {
#ifdef TILES
return !g->u.get_memorized_tile( getabs( q ) ).tile.empty();
#else
return g->u.get_memorized_symbol( getabs( q ) );
#endif
};

// populate connection information
Expand Down

0 comments on commit c884a95

Please sign in to comment.