diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-03 22:35:28 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-03 22:35:28 +0000 |
commit | e9fd95f6c3dccee78f770c32757da8cd0f938011 (patch) | |
tree | d8db42feea3b77f5e4d3c46a85bab0d2c13a8201 /crawl-ref/source/spells1.cc | |
parent | bf2a59fd761571998062b21409ee678e2852254b (diff) | |
download | crawl-ref-e9fd95f6c3dccee78f770c32757da8cd0f938011.tar.gz crawl-ref-e9fd95f6c3dccee78f770c32757da8cd0f938011.zip |
Add ASSERT(!crawl_state.arena) to a number of places.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8184 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 0dc35f0ce0..73b8d407ab 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -62,6 +62,8 @@ static bool _abyss_blocks_teleport(bool cblink) // contamination. int blink(int pow, bool high_level_controlled_blink, bool wizard_blink) { + ASSERT(!crawl_state.arena); + dist beam; if (crawl_state.is_repeating_cmd()) @@ -194,6 +196,8 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink) void random_blink(bool allow_partial_control, bool override_abyss) { + ASSERT(!crawl_state.arena); + bool success = false; coord_def target; |