Fixed bug : buttons in button panel were drawn clicked when clicking in the menu

This commit is contained in:
jsalmon3 2003-03-05 05:10:03 +00:00
parent 477d56220a
commit 0d91d4d7ce

View file

@ -2062,10 +2062,11 @@ global void EndMenu(void)
MustRedraw = RedrawEverything;
PopMenu();
if (!CurrentMenu && Callbacks!=&GameCallbacks) {
InterfaceState=IfaceStateNormal;
Callbacks=&GameCallbacks;
GamePaused=0;
if (!CurrentMenu && Callbacks != &GameCallbacks) {
InterfaceState = IfaceStateNormal;
Callbacks = &GameCallbacks;
GamePaused = 0;
UIHandleMouseMove(CursorX, CursorY);
}
}
@ -2101,6 +2102,7 @@ global void ProcessMenu(const char *menu_id, int loop)
InterfaceState = IfaceStateMenu;
}
ButtonUnderCursor = -1;
VideoLockScreen();
HideAnyCursor();
VideoUnlockScreen();