fix broken randomizer on silly quit messages (only 4 of 7 were displayed)

This commit is contained in:
rainwarrior 2016-08-31 02:04:33 +00:00
parent d9eb69523d
commit bb0f6234aa
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}