From 1501b173c058f11e53507532ad583a6ac9c061cc Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sat, 17 Nov 2018 14:02:28 -0800 Subject: 4.0.5 --- App/App.vcxproj | 5 +++++ App/Main.cpp | 3 ++- App/Version.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'App') diff --git a/App/App.vcxproj b/App/App.vcxproj index 1633837..2597b8d 100644 --- a/App/App.vcxproj +++ b/App/App.vcxproj @@ -72,15 +72,19 @@ true + WitnessRandomizer true + WitnessRandomizer false + WitnessRandomizer false + WitnessRandomizer @@ -151,6 +155,7 @@ stdcpp17 ..\Source;%(AdditionalIncludeDirectories) true + MultiThreaded Windows diff --git a/App/Main.cpp b/App/Main.cpp index 6ebef7e..7a8e7f3 100644 --- a/App/Main.cpp +++ b/App/Main.cpp @@ -54,7 +54,8 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) GetWindowText(hwndSeed, &text[0], 100); int seed = _wtoi(text.c_str()); - if (seedIsRNG || text.empty()) { + // TODO: text needs to be resized! + if (seedIsRNG || wcslen(text.c_str()) == 0) { seed = Random::RandInt(0, 100000); seedIsRNG = true; } diff --git a/App/Version.h b/App/Version.h index 8029020..04b6d2b 100644 --- a/App/Version.h +++ b/App/Version.h @@ -5,7 +5,7 @@ #define MAJOR 4 #define MINOR 0 -#define PATCH 4 +#define PATCH 5 #define VERSION_STR TO_STRING(MAJOR) L"." TO_STRING(MINOR) L"." TO_STRING(PATCH) #define VERSION MAJOR, MINOR, PATCH -- cgit 1.4.1