diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:58 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:58 +0100 |
commit | 1ba4f05af61fbc1b65cf12d140bb4bce6c91e71d (patch) | |
tree | c5e96feaaf11af889b3c2676b613bc88d8b39eae /src/files.cc | |
parent | e20d50a1b347d52d9b6e2c2570fe97f196c2c069 (diff) |
Remove wf_head, wf_name, wf_text
Diffstat (limited to 'src/files.cc')
-rw-r--r-- | src/files.cc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/files.cc b/src/files.cc index 29b216e4..b5c4da8a 100644 --- a/src/files.cc +++ b/src/files.cc @@ -2293,11 +2293,11 @@ cptr describe_player_location() } else if (wf_info[feat].terrain_idx == TERRAIN_TOWN) { - sprintf(desc, "in the town of %s", wf_info[feat].name + wf_name); + sprintf(desc, "in the town of %s", wf_info[feat].name); } else if (wf_info[feat].entrance) { - sprintf(desc, "near %s", wf_info[feat].name + wf_name); + sprintf(desc, "near %s", wf_info[feat].name); } else { @@ -2335,10 +2335,14 @@ cptr describe_player_location() } if (!landmark) - sprintf(desc, "in %s", wf_info[feat].text + wf_text); + { + sprintf(desc, "in %s", wf_info[feat].text); + } else if (pwx == lwx && pwy == lwy) + { /* Paranoia; this should have been caught above */ - sprintf(desc, "near %s", wf_info[feat].name + wf_name); + sprintf(desc, "near %s", wf_info[feat].name); + } else { /* @@ -2360,8 +2364,10 @@ cptr describe_player_location() if (dx * 81 < dy * 31) ew = ""; sprintf(desc, "in %s %s%s of %s", - wf_info[feat].text + wf_text, ns, ew, - wf_info[landmark].name + wf_name); + wf_info[feat].text, + ns, + ew, + wf_info[landmark].name); } } @@ -2469,7 +2475,7 @@ void file_character_print_store(FILE *fff, wilderness_type_info *place, int stor if (st_ptr->stock_num) { /* Header with name of the town */ - fprintf(fff, " [%s Inventory - %s]\n\n", st_name + st_info[store].name, wf_name + place->name); + fprintf(fff, " [%s Inventory - %s]\n\n", st_name + st_info[store].name, place->name); /* Dump all available items */ for (i = 0; i < st_ptr->stock_num; i++) |