summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/birth.cc3
-rw-r--r--src/files.cc4
-rw-r--r--src/generate.cc2
-rw-r--r--src/loadsave.cc1
-rw-r--r--src/monster2.cc2
-rw-r--r--src/object2.cc2
-rw-r--r--src/player_type.hpp1
7 files changed, 6 insertions, 9 deletions
diff --git a/src/birth.cc b/src/birth.cc
index 948d1c37..e581d8f0 100644
--- a/src/birth.cc
+++ b/src/birth.cc
@@ -2139,8 +2139,7 @@ static bool_ player_birth_aux_ask()
}
}
- /* Set birth options: preserve, astral */
- p_ptr->preserve = preserve;
+ /* Is the player an "astral" being? */
p_ptr->astral = (race_flags_p(PR_ASTRAL)) ? TRUE : FALSE;
/*
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);
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;
diff --git a/src/loadsave.cc b/src/loadsave.cc
index 20182298..d6ca168a 100644
--- a/src/loadsave.cc
+++ b/src/loadsave.cc
@@ -792,7 +792,6 @@ static bool_ do_extra(ls_flag_t flag)
do_bool(&p_ptr->black_breath, flag);
do_bool(&fate_flag, flag);
do_byte(&p_ptr->searching, flag);
- do_byte(&p_ptr->preserve, flag);
do_bool(&ambush_flag, flag);
do_byte(&p_ptr->allow_one_death, flag);
diff --git a/src/monster2.cc b/src/monster2.cc
index 74380a25..4051a872 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -476,7 +476,7 @@ void delete_monster_idx(int i)
/* Hack -- efficiency */
o_ptr->held_m_idx = 0;
- if ( p_ptr->preserve )
+ if (preserve)
{
/* Hack -- Preserve unknown artifacts */
if (artifact_p(o_ptr) && !object_known_p(o_ptr))
diff --git a/src/object2.cc b/src/object2.cc
index ee001427..6185cc27 100644
--- a/src/object2.cc
+++ b/src/object2.cc
@@ -387,7 +387,7 @@ void wipe_o_list(void)
if (!o_ptr->k_idx) continue;
/* Mega-Hack -- preserve artifacts */
- if (!character_dungeon || p_ptr->preserve)
+ if (!character_dungeon || preserve)
{
/* Hack -- Preserve unknown artifacts */
if (artifact_p(o_ptr) && !object_known_p(o_ptr))
diff --git a/src/player_type.hpp b/src/player_type.hpp
index 11eac14d..3130d859 100644
--- a/src/player_type.hpp
+++ b/src/player_type.hpp
@@ -47,7 +47,6 @@ struct player_type
byte hitdie = 0; /* Hit dice (sides) */
u16b expfact = 0; /* Experience factor */
- byte preserve = 0; /* Preserve artifacts */
byte allow_one_death = 0; /* Blood of life */
s32b au = 0; /* Current Gold */