summaryrefslogtreecommitdiff
path: root/src/files.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit7bf0a5a464c417cbe6d746a0deabd9538d66d4b1 (patch)
tree770fe3d81861d8555c3503d2fe561bdceca1d0e8 /src/files.cc
parent8ef7443e887958060d7a77b3750f495b592eb7b3 (diff)
Remove player_type::preserve field
It redundantly duplicates the value of the 'preserve' option, and since the options are saved along with the character we don't actually need it.
Diffstat (limited to 'src/files.cc')
-rw-r--r--src/files.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/files.cc b/src/files.cc
index 8d489d0c..1f0d72d9 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -2662,7 +2662,7 @@ errr file_character(cptr name, bool_ full)
else
fprintf(fff, "\n Joke monsters: OFF");
- if (p_ptr->preserve)
+ if (preserve)
fprintf(fff, "\n Preserve Mode: ON");
else
fprintf(fff, "\n Preserve Mode: OFF");
@@ -4017,7 +4017,7 @@ static long total_points(void)
if (!comp_death) comp_death = 1;
- if (p_ptr->preserve) mult -= 1; /* Penalize preserve, maximize modes */
+ if (preserve) mult -= 1; /* Penalize preserve, maximize modes */
mult -= 1; /* maximize pentalty, always on */
if (auto_scum) mult -= 4;
if (small_levels) mult += ((always_small_level) ? 4 : 10);