diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-25 20:28:19 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-25 20:28:19 +0000 |
commit | 50f0339056d716c5c6d8b785b1272dd7b5bd5065 (patch) | |
tree | b76491135fab91a04e91c67333de897d5c128e9b /crawl-ref | |
parent | 609b3edb070ee04a1583fb8614297e731f1cdaea (diff) | |
download | crawl-ref-50f0339056d716c5c6d8b785b1272dd7b5bd5065.tar.gz crawl-ref-50f0339056d716c5c6d8b785b1272dd7b5bd5065.zip |
Add const.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6141 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/xom.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 34fda175be..de1f06b626 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -579,9 +579,10 @@ static bool _xom_is_good(int sever) hitting = MHITYOU; } - int summons = create_monster( - mgen_data(mon, beha, 6, - you.pos(), hitting, MG_FORCE_BEH, GOD_XOM)); + const int summons = + create_monster( + mgen_data(mon, beha, 6, + you.pos(), hitting, MG_FORCE_BEH, GOD_XOM)); if (summons != -1) { @@ -669,10 +670,10 @@ static bool _xom_is_good(int sever) hitting = MHITYOU; } - int summons = create_monster( - mgen_data(_xom_random_demon(sever, one_chance_in(8)), - beha, 0, - you.pos(), hitting, MG_FORCE_BEH, GOD_XOM)); + const int summons = + create_monster( + mgen_data(_xom_random_demon(sever, one_chance_in(8)), beha, 0, + you.pos(), hitting, MG_FORCE_BEH, GOD_XOM)); if (summons != -1) { @@ -869,7 +870,7 @@ static bool _xom_is_bad(int sever) if (create_monster( mgen_data::hostile_at( _xom_random_punishment_demon(sever), - you.pos(), 4, 0, true, GOD_XOM)) != -1) + you.pos(), 4, 0, true, GOD_XOM)) != -1) { success = true; } |