Resetting menu->mouse_state after changing a key in kconfig so you will not accidentially activate a new field when left mouse button is assigned

This commit is contained in:
zicodxx 2010-02-25 15:20:01 +00:00
parent c4f86ebfc8
commit dab80569a6
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@ D1X-Rebirth Changelog
main/game.c, main/gamecntl.c, main/gameseq.c, main/state.c, main/state.h: Put fast save back, using Alt-F1 instead of F6
arch/sdl/key.c: Move call to callback outside of loop in key_handler, now deleting a second demo using CTRL-D actually works
main/automap.c, main/game.c, main/gamecntl.c, main/gauges.c, main/kconfig.c, main/net_ipx.c, main/net_udp.c, main/newmenu.c, main/scores.c: Call game_flush_inputs for all windows' EVENT_WINDOW_ACTIVATED, so clicking on a pilot doesn't bring up the multiplayer screen for example
main/kconfig.c: Resetting menu->mouse_state after changing a key in kconfig so you will not accidentially activate a new field when left mouse button is assigned
20100224
--------

View file

@ -613,6 +613,7 @@ int kconfig_idle(window *wind, d_event *event, kc_menu *menu)
{
gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) );
game_flush_inputs();
menu->mouse_state = 0;
return 1;
}
}