this cheat window was acting weird

This commit is contained in:
zeromus 2008-06-23 00:57:01 +00:00
parent 82cdb6a12e
commit 373a543044
1 changed files with 1 additions and 6 deletions

View File

@ -518,16 +518,11 @@ void ConfigCheats(HWND hParent) {
if (!CheatWindow) {
selcheat=-1;
CheatWindow=1;
if (CheatStyle) hCheat = CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB);
if (CheatStyle) pwindow = hCheat = CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB);
else DialogBox(fceu_hInstance,"CHEATCONSOLE",hParent,CheatConsoleCallB);
}
else
SetFocus(hCheat);
if(!pwindow)
pwindow=CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB);
else
SetFocus(pwindow);
}
void UpdateCheatList()