From 8ef7443e887958060d7a77b3750f495b592eb7b3 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 17 Sep 2016 09:58:14 +0200 Subject: Remove unused player_type::special field --- src/birth.cc | 3 +-- src/loadsave.cc | 1 - src/player_type.hpp | 1 - src/variable.cc | 3 --- src/variable.hpp | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/birth.cc b/src/birth.cc index 27b7ee89..948d1c37 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -2139,9 +2139,8 @@ static bool_ player_birth_aux_ask() } } - /* Set birth options: maximize, preserve, sepcial levels and astral */ + /* Set birth options: preserve, astral */ p_ptr->preserve = preserve; - p_ptr->special = special_lvls; p_ptr->astral = (race_flags_p(PR_ASTRAL)) ? TRUE : FALSE; /* diff --git a/src/loadsave.cc b/src/loadsave.cc index f6a67093..20182298 100644 --- a/src/loadsave.cc +++ b/src/loadsave.cc @@ -793,7 +793,6 @@ static bool_ do_extra(ls_flag_t flag) do_bool(&fate_flag, flag); do_byte(&p_ptr->searching, flag); do_byte(&p_ptr->preserve, flag); - do_byte(&p_ptr->special, flag); do_bool(&ambush_flag, flag); do_byte(&p_ptr->allow_one_death, flag); diff --git a/src/player_type.hpp b/src/player_type.hpp index 684a086e..11eac14d 100644 --- a/src/player_type.hpp +++ b/src/player_type.hpp @@ -48,7 +48,6 @@ struct player_type u16b expfact = 0; /* Experience factor */ byte preserve = 0; /* Preserve artifacts */ - byte special = 0; /* Special levels */ byte allow_one_death = 0; /* Blood of life */ s32b au = 0; /* Current Gold */ diff --git a/src/variable.cc b/src/variable.cc index 4ac48b50..c40ac8ba 100644 --- a/src/variable.cc +++ b/src/variable.cc @@ -881,9 +881,6 @@ s16b doppleganger; /* To allow wilderness encounters */ bool_ generate_encounter; -/* Special levels */ -bool_ special_lvls; - /* * Such an ugly hack ... */ diff --git a/src/variable.hpp b/src/variable.hpp index 3cfc7c8c..459abef1 100644 --- a/src/variable.hpp +++ b/src/variable.hpp @@ -269,7 +269,6 @@ extern byte dungeon_type; extern s16b *max_dlv; extern s16b doppleganger; extern bool_ generate_encounter; -extern bool_ special_lvls; extern bool_ *m_allow_special; extern bool_ *k_allow_special; extern bool_ *a_allow_special; -- cgit v1.2.3