From 0ab1ec01b2bf4492cfdafc668ff57c4460748940 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Thu, 15 Oct 2009 10:45:36 -0700 Subject: it_use2.cc: remove bad 'const' qualifier on variable declaration This broke Visual C++ builds. Signed-off-by: Steven Noonan --- crawl-ref/source/it_use2.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index bb3d733aae..84cdc0b4ed 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -38,13 +38,14 @@ REVISION("$Rev$"); // From an actual potion, pow == 40 -- bwr bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) { + bool effect = true; // current behaviour is all potions id on quaffing pow = std::min(pow, 150); - const int factor = (you.species == SP_VAMPIRE - && you.hunger_state < HS_SATIATED - && drank_it ? 2 : 1); + int factor = (you.species == SP_VAMPIRE + && you.hunger_state < HS_SATIATED + && drank_it ? 2 : 1); // Knowingly drinking bad potions is much less amusing. int xom_factor = factor; -- cgit v1.2.3-54-g00ecf