summaryrefslogtreecommitdiff
path: root/src/xtra1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:58 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:58 +0100
commit1ba4f05af61fbc1b65cf12d140bb4bce6c91e71d (patch)
treec5e96feaaf11af889b3c2676b613bc88d8b39eae /src/xtra1.cc
parente20d50a1b347d52d9b6e2c2570fe97f196c2c069 (diff)
Remove wf_head, wf_name, wf_text
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r--src/xtra1.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc
index eb70787d..718d2569 100644
--- a/src/xtra1.cc
+++ b/src/xtra1.cc
@@ -515,10 +515,14 @@ static void prt_depth(int row, int col)
}
else if (!dun_level)
{
- if (wf_info[wild_map[p_ptr->wilderness_y][p_ptr->wilderness_x].feat].name + wf_name)
- strcpy(depths, wf_info[wild_map[p_ptr->wilderness_y][p_ptr->wilderness_x].feat].name + wf_name);
+ if (wf_info[wild_map[p_ptr->wilderness_y][p_ptr->wilderness_x].feat].name)
+ {
+ strcpy(depths, wf_info[wild_map[p_ptr->wilderness_y][p_ptr->wilderness_x].feat].name);
+ }
else
+ {
strcpy(depths, "Town/Wild");
+ }
}
else
{