summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index c929776c85..29566cf85f 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -4501,6 +4501,8 @@ void player::init()
your_name[0] = 0;
banished = false;
+ banished_by.clear();
+
just_autoprayed = false;
berserk_penalty = 0;
berserker = 0;
@@ -4944,9 +4946,10 @@ void player::god_conduct(int thing_done, int level)
::did_god_conduct(thing_done, level);
}
-void player::banish()
+void player::banish(const std::string &who)
{
- banished = true;
+ banished = true;
+ banished_by = who;
}
void player::make_hungry(int hunger_increase, bool silent)