diff options
| author | navewindre <boneyaard@gmail.com> | 2018-08-30 22:58:37 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-08-30 22:58:37 +0200 |
| commit | 1f3f1ab2a20c6d90189cf1fd03cfbb08077bc02e (patch) | |
| tree | 04595c6b6bb31b43811270961668dae2f8c9ed61 /internal_rewrite/visual_local.cpp | |
| parent | c4e18b4e500dc603fb7546b7bc9bc574fb09e0a8 (diff) | |
dsad
Diffstat (limited to 'internal_rewrite/visual_local.cpp')
| -rw-r--r-- | internal_rewrite/visual_local.cpp | 9 |
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( ) {
|
