summaryrefslogtreecommitdiff
path: root/src/generate.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/generate.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/generate.cc')
-rw-r--r--src/generate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generate.cc b/src/generate.cc
index 3f74bc24..8c02c58a 100644
--- a/src/generate.cc
+++ b/src/generate.cc
@@ -8508,7 +8508,7 @@ void generate_cave(void)
else feeling = 10;
/* Hack -- Have a special feeling sometimes */
- if (good_item_flag && !p_ptr->preserve) feeling = 1;
+ if (good_item_flag && !preserve) feeling = 1;
/* It takes 1000 game turns for "feelings" to recharge */
if ((turn - old_turn) < 1000) feeling = 0;