From a500f10a056fbd2ceb72a3a6de9b30003c366b6f Mon Sep 17 00:00:00 2001 From: Marvelco Date: Thu, 7 Aug 2025 23:01:57 +0300 Subject: [PATCH] minor bug fix --- Project Reboot 3.0/botnames.h | 1 + Project Reboot 3.0/gui.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Project Reboot 3.0/botnames.h b/Project Reboot 3.0/botnames.h index e55d7c8..18b5c43 100644 --- a/Project Reboot 3.0/botnames.h +++ b/Project Reboot 3.0/botnames.h @@ -69,6 +69,7 @@ static inline void InitBotNames() PlayerBotNames.push_back(L"AllyJax"); PlayerBotNames.push_back(L"secret_pommes"); PlayerBotNames.push_back(L"Twin1"); + PlayerBotNames.push_back(L"Marvelco"); std::shuffle(PlayerBotNames.begin(), PlayerBotNames.end(), std::default_random_engine((unsigned int)time(0))); } diff --git a/Project Reboot 3.0/gui.h b/Project Reboot 3.0/gui.h index ba934e4..79b115a 100644 --- a/Project Reboot 3.0/gui.h +++ b/Project Reboot 3.0/gui.h @@ -1564,7 +1564,9 @@ static inline DWORD WINAPI GuiThread(LPVOID) { WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, L"RebootClass", NULL }; ::RegisterClassEx(&wc); - HWND hwnd = ::CreateWindowExW(0L, wc.lpszClassName, (L"Project Reboot " + std::to_wstring(Fortnite_Version)).c_str(), (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX), 100, 100, Width, Height, NULL, NULL, wc.hInstance, NULL); + + HWND hwnd = ::CreateWindowExW(0L,wc.lpszClassName,(L"Project Reboot " + ([](double v) { std::wstringstream ss; ss << std::fixed << std::setprecision(2) << v; return ss.str(); })(Fortnite_Version)).c_str(),(WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX), 100, 100, Width, Height, NULL, NULL, wc.hInstance, NULL); + if (hwnd == NULL) {