diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-15 10:45:36 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-15 10:45:36 -0700 |
commit | 0ab1ec01b2bf4492cfdafc668ff57c4460748940 (patch) | |
tree | 46ea0e7d72722f18b6f612d8bad9aad377bb0aa5 /crawl-ref/source/it_use2.cc | |
parent | 2928233ac477f85800ea82e51012f9723a5ca02a (diff) | |
download | crawl-ref-0ab1ec01b2bf4492cfdafc668ff57c4460748940.tar.gz crawl-ref-0ab1ec01b2bf4492cfdafc668ff57c4460748940.zip |
it_use2.cc: remove bad 'const' qualifier on variable declaration
This broke Visual C++ builds.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r-- | crawl-ref/source/it_use2.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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; |