summaryrefslogtreecommitdiff
path: root/internal_rewrite/directx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/directx.cpp')
-rw-r--r--internal_rewrite/directx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal_rewrite/directx.cpp b/internal_rewrite/directx.cpp
index be708b9..fa40fb3 100644
--- a/internal_rewrite/directx.cpp
+++ b/internal_rewrite/directx.cpp
@@ -193,6 +193,7 @@ long __stdcall hooks::d3d::present( IDirect3DDevice9* device, RECT* source, RECT
static std::string date;
std::string str;
+#ifdef _DEBUG
static bool transformed = false;
if( !transformed ) {
date += __DATE__;
@@ -201,6 +202,7 @@ long __stdcall hooks::d3d::present( IDirect3DDevice9* device, RECT* source, RECT
transformed = true;
}
+#endif
str = xors( "moneybot | " );
auto nci = g_csgo.m_engine( )->GetNetChannelInfo( );
@@ -213,7 +215,11 @@ long __stdcall hooks::d3d::present( IDirect3DDevice9* device, RECT* source, RECT
str += xors( "unconnected | " );
}
+#ifdef _DEBUG
str += date;
+#else
+ str += g_header.username;
+#endif
g_d3d.draw_text< ALIGN_RIGHT >( ::d3d::fonts.f_menu,
ui::ui_get_text_col( ), g_d3d.m_width - 10, 8,