diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2013-03-19 10:59:09 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2013-03-19 10:59:09 -0500 |
commit | 409b830e300bd47cb445fc312c355c61203c51c9 (patch) | |
tree | 43960e05345dfb680624a4fd8e2aeafcd58b9903 /crawl-ref/source/spl-transloc.cc | |
parent | db2b50e94ba3b99453e79c68ea357b35059e4baa (diff) | |
download | crawl-ref-409b830e300bd47cb445fc312c355c61203c51c9.tar.gz crawl-ref-409b830e300bd47cb445fc312c355c61203c51c9.zip |
Constify.
Diffstat (limited to 'crawl-ref/source/spl-transloc.cc')
-rw-r--r-- | crawl-ref/source/spl-transloc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-transloc.cc b/crawl-ref/source/spl-transloc.cc index e022b899f9..7c93d7155d 100644 --- a/crawl-ref/source/spl-transloc.cc +++ b/crawl-ref/source/spl-transloc.cc @@ -350,8 +350,8 @@ void random_blink(bool allow_partial_control, bool override_abyss, bool override // here. bool allow_control_teleport(bool quiet) { - bool retval = !(testbits(env.level_flags, LFLAG_NO_TELE_CONTROL) - || orb_haloed(you.pos()) || you.beheld()); + const bool retval = !(testbits(env.level_flags, LFLAG_NO_TELE_CONTROL) + || orb_haloed(you.pos()) || you.beheld()); // Tell the player why if they have teleport control. if (!quiet && !retval && player_control_teleport()) |