diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-17 14:02:28 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-17 14:02:28 -0800 |
commit | 1501b173c058f11e53507532ad583a6ac9c061cc (patch) | |
tree | 3066f68055fd6bcf73d9686a4980b041d74f28d6 /App/Main.cpp | |
parent | 1f85741c8d12d9b1fbd55b29f334de572f9eea9b (diff) | |
download | witness-tutorializer-1501b173c058f11e53507532ad583a6ac9c061cc.tar.gz witness-tutorializer-1501b173c058f11e53507532ad583a6ac9c061cc.tar.bz2 witness-tutorializer-1501b173c058f11e53507532ad583a6ac9c061cc.zip |
4.0.5
Diffstat (limited to 'App/Main.cpp')
-rw-r--r-- | App/Main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
54 | GetWindowText(hwndSeed, &text[0], 100); | 54 | GetWindowText(hwndSeed, &text[0], 100); |
55 | int seed = _wtoi(text.c_str()); | 55 | int seed = _wtoi(text.c_str()); |
56 | 56 | ||
57 | if (seedIsRNG || text.empty()) { | 57 | // TODO: text needs to be resized! |
58 | if (seedIsRNG || wcslen(text.c_str()) == 0) { | ||
58 | seed = Random::RandInt(0, 100000); | 59 | seed = Random::RandInt(0, 100000); |
59 | seedIsRNG = true; | 60 | seedIsRNG = true; |
60 | } | 61 | } |