From bb0f6234aab04cff98619ea66e91bb904edc7248 Mon Sep 17 00:00:00 2001 From: rainwarrior Date: Wed, 31 Aug 2016 02:04:33 +0000 Subject: [PATCH] fix broken randomizer on silly quit messages (only 4 of 7 were displayed) --- trunk/src/drivers/win/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trunk/src/drivers/win/main.cpp b/trunk/src/drivers/win/main.cpp index a2a43e4b..938efaac 100644 --- a/trunk/src/drivers/win/main.cpp +++ b/trunk/src/drivers/win/main.cpp @@ -438,10 +438,9 @@ void DoFCEUExit() "E.X.I.T?", "I'm sorry, you missed your exit. There is another one in 19 miles", "Silly Exit Message goes here" - }; - if(IDYES != MessageBox(hAppWnd, emsg[rand() & 6], "Exit FCE Ultra?", MB_ICONQUESTION | MB_YESNO) ) + if(IDYES != MessageBox(hAppWnd, emsg[rand() % 7], "Exit FCE Ultra?", MB_ICONQUESTION | MB_YESNO) ) { return; }