summaryrefslogtreecommitdiff
path: root/src/files.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:15 +0200
commitdc261d2c9732554d9f510e11711ac84d028e5ac1 (patch)
tree2eeb12d57fa130309f26160277fb2677bf928c37 /src/files.cc
parenteea082ffd1a3ecf73b7c464cc28da5ef74d3a30f (diff)
Use grid<> for wilderness grid
Diffstat (limited to 'src/files.cc')
-rw-r--r--src/files.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/files.cc b/src/files.cc
index 4e70acde..d055b32c 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -2321,11 +2321,13 @@ void display_player(int mode)
*/
cptr describe_player_location()
{
+ auto const &wilderness = *wilderness_ptr;
+
int i;
static char desc[80];
int pwx = (p_ptr->wild_mode ? p_ptr->px : p_ptr->wilderness_x);
int pwy = (p_ptr->wild_mode ? p_ptr->py : p_ptr->wilderness_y);
- int feat = wild_map[pwy][pwx].feat;
+ int feat = wilderness(pwx, pwy).feat;
if (dungeon_type != DUNGEON_WILDERNESS && dun_level > 0)
{
@@ -2362,7 +2364,7 @@ cptr describe_player_location()
if (!wf_info[i].entrance) continue;
/* Skip if we haven't seen it */
- if (!wild_map[wy][wx].known) continue;
+ if (!wilderness(wx, wy).known) continue;
dist = distance(wy, wx, pwy, pwx);
if (dist < l_dist || l_dist < 0)