Fix the escape problem for Join Game.

Allowing the menus to override the Escape key was necessary, but there was
badly written code floating around that broke when that was implemented.
Oops.
This commit is contained in:
Bill Currie 2011-07-07 17:08:21 +09:00
parent 01463b0e77
commit 838e35af96

View file

@ -432,7 +432,7 @@ int (int key, int unicode, int down) lanconfig_keyevent =
lanConfig_cursor ++;
lanConfig_cursor %= NUM_LANCONFIG_CMDS;
}
break;
return 1;
case QFK_UP:
case QFM_WHEEL_UP:
if (!input_active) {
@ -440,7 +440,7 @@ int (int key, int unicode, int down) lanconfig_keyevent =
lanConfig_cursor += NUM_LANCONFIG_CMDS - 1;
lanConfig_cursor %= NUM_LANCONFIG_CMDS;
}
break;
return 1;
case QFK_RETURN:
if (input_active) {
input_active = nil;
@ -453,9 +453,9 @@ int (int key, int unicode, int down) lanconfig_keyevent =
}
}
}
break;
return 1;
}
return 1;
return 0;
};
void () lanconfig_menu =