diff options
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index d3c2343bb9..ebbf6955e5 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -5985,18 +5985,24 @@ void debug_miscast( int target_index ) MiscastEffect *miscast; if (spell != SPELL_NO_SPELL) + { miscast = new MiscastEffect(target, target_index, spell, pow, fail, "", nothing); + } else { if (level != -1) + { miscast = new MiscastEffect(target, target_index, school, level, "wizard testing miscast", nothing); + } else + { miscast = new MiscastEffect(target, target_index, school, pow, fail, "wizard testing miscast", nothing); + } } // Merely creating the miscast object causes one miscast effect to // happen. @@ -6399,8 +6405,10 @@ static void _debug_marker_scan() map_marker_type type = marker->get_type(); if (type < MAT_FEATURE || type >= NUM_MAP_MARKER_TYPES) + { mprf(MSGCH_ERROR, "Makrer #%d at (%d, %d) has invalid type %d", i, marker->pos.x, marker->pos.y, (int) type); + } if (!in_bounds(marker->pos)) { |