summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-10-31 12:18:26 -0400
committerCharles Otto <ottochar@gmail.com>2009-10-31 12:19:25 -0400
commitc1d8dc0f1c7cfa48c46d7fe34c558a1d8f0ff586 (patch)
tree9ea8a199da782ac76782b86df3b323dba65912c8
parent11ab2028277167a5ed9592ff13d4090ce4d60109 (diff)
downloadcrawl-ref-c1d8dc0f1c7cfa48c46d7fe34c558a1d8f0ff586.tar.gz
crawl-ref-c1d8dc0f1c7cfa48c46d7fe34c558a1d8f0ff586.zip
Refresh the quiver and weapon slots when changing gods (bug [2889493])
-rw-r--r--crawl-ref/source/religion.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 0be8ae184f..64d2f9190c 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -5944,6 +5944,11 @@ void excommunication(god_type new_god)
redraw_skill(you.your_name, player_title());
+ // Renouncing may have changed the conducts on our wielded or
+ // quivered weapons so refresh the display.
+ you.wield_change = true;
+ you.redraw_quiver = true;
+
mpr("You have lost your religion!");
more();
@@ -6985,6 +6990,11 @@ void god_pitch(god_type which_god)
}
}
+ // Refresh wielded/quivered weapons in case we have a new conduct
+ // on them.
+ you.wield_change = true;
+ you.redraw_quiver = true;
+
redraw_skill(you.your_name, player_title());
learned_something_new(TUT_CONVERT);