[Project64] Randomize nag window timer

This commit is contained in:
zilmar 2016-10-03 08:48:25 +11:00
parent 081d6c7853
commit 7d4ba9b278
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "SupportEnterCode.h"
#include <time.h>
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;
}