minor bug fix

This commit is contained in:
Marvelco
2025-08-07 23:01:57 +03:00
parent 91cb107aed
commit a500f10a05
2 changed files with 4 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ static inline void InitBotNames()
PlayerBotNames.push_back(L"AllyJax"); PlayerBotNames.push_back(L"AllyJax");
PlayerBotNames.push_back(L"secret_pommes"); PlayerBotNames.push_back(L"secret_pommes");
PlayerBotNames.push_back(L"Twin1"); PlayerBotNames.push_back(L"Twin1");
PlayerBotNames.push_back(L"Marvelco");
std::shuffle(PlayerBotNames.begin(), PlayerBotNames.end(), std::default_random_engine((unsigned int)time(0))); std::shuffle(PlayerBotNames.begin(), PlayerBotNames.end(), std::default_random_engine((unsigned int)time(0)));
} }

View File

@@ -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 }; WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, L"RebootClass", NULL };
::RegisterClassEx(&wc); ::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) if (hwnd == NULL)
{ {