about summary refs log tree commit diff stats
path: root/App/Main.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-11-17 14:02:28 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2018-11-17 14:02:28 -0800
commit1501b173c058f11e53507532ad583a6ac9c061cc (patch)
tree3066f68055fd6bcf73d9686a4980b041d74f28d6 /App/Main.cpp
parent1f85741c8d12d9b1fbd55b29f334de572f9eea9b (diff)
downloadwitness-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.cpp3
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 }