summaryrefslogtreecommitdiff
path: root/internal_rewrite/directx.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-02 00:10:54 +0200
committernavewindre <boneyaard@gmail.com>2018-09-02 00:10:54 +0200
commita2712607137b820e4f4a875636b04e32b59a53c9 (patch)
tree18eb47286b33baf93629f6a8f939bde5f01e85f5 /internal_rewrite/directx.cpp
parent25ecefe33613fb1d12e005efa73f92dc16090624 (diff)
a
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,