From 1f3f1ab2a20c6d90189cf1fd03cfbb08077bc02e Mon Sep 17 00:00:00 2001 From: navewindre Date: Thu, 30 Aug 2018 22:58:37 +0200 Subject: dsad --- internal_rewrite/visual_local.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal_rewrite/visual_local.cpp') 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( ) { -- cgit v1.2.3