summaryrefslogtreecommitdiff
path: root/internal_rewrite/visual_local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/visual_local.cpp')
-rw-r--r--internal_rewrite/visual_local.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal_rewrite/visual_local.cpp b/internal_rewrite/visual_local.cpp
index 8a20aea..413a35f 100644
--- a/internal_rewrite/visual_local.cpp
+++ b/internal_rewrite/visual_local.cpp
@@ -441,6 +441,15 @@ namespace features
draw_line( screen_w / 2, screen_h / 2 - 1, screen_w / 2, screen_h / 2 + 2,
can_penetrate ? clr_t( 0, 220, 0 ) : clr_t( 220, 0, 0 ) );
+
+#ifdef _DEBUG
+ static con_var< bool > dbg_awall{ &data::holder_, fnv( "dbg_awall" ) };
+
+ if( dbg_awall( ) ) {
+ draw_string( screen_w / 2 + 5, screen_h / 2 + 5, ALIGN_LEFT, true,
+ can_penetrate ? clr_t( 0, 220, 0 ) : clr_t( 220, 0, 0 ), "%d", ( int )data.current_damage );
+ }
+#endif
}
void c_visuals::draw_spread( ) {