Permalink
Browse files

Use the correct memory according to build type

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 1, 2018
1 parent 6dcb1bb commit c884a955cb028992f9dfdc3d591e8f18e2d212d0
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/map.cpp
@@ -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

0 comments on commit c884a95

Please sign in to comment.