From 7d4ba9b2789128715ee3200bc914a16db3d1f8c6 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 3 Oct 2016 08:48:25 +1100 Subject: [PATCH] [Project64] Randomize nag window timer --- Source/Project64/UserInterface/SupportWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Project64/UserInterface/SupportWindow.cpp b/Source/Project64/UserInterface/SupportWindow.cpp index 0095d70cb..779004a9a 100644 --- a/Source/Project64/UserInterface/SupportWindow.cpp +++ b/Source/Project64/UserInterface/SupportWindow.cpp @@ -1,5 +1,6 @@ #include "stdafx.h" #include "SupportEnterCode.h" +#include HWND CSupportWindow::m_hParent = NULL; CSupportWindow * CSupportWindow::m_this = NULL; @@ -89,7 +90,8 @@ LRESULT CSupportWindow::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /* SetWindowLong(GWL_STYLE, dwStyle); ::EnableWindow(GetDlgItem(IDCANCEL), false); - SetTimer(0, 30000, NULL); + srand (time(NULL)); + SetTimer(0, ((rand() % 35) + 5) * 1000, NULL); } return TRUE; }