Merge upstream changes: Prevent menu selection when cursor is out of window

This was introduced in System3-sdl2 71728db only for nact_sys3. TOTO took
this change and expanded for nact_sys1 and nact_sys2 as well.
This commit is contained in:
kichikuou
2020-05-23 10:40:05 +09:00
parent 49b4ac4053
commit cda1888ebc
3 changed files with 37 additions and 15 deletions
+1 -3
View File
@@ -153,10 +153,8 @@ int NACT_Sys3::menu_select(int num_items)
int height = ags->menu_font_size + 4;
set_cursor(mx, my);
bool selectable = true;
// メニュー選択
for(;;) {
for(bool selectable = true;;) {
// 入力待機
int val = 0, current_mx = mx, current_my = my;
for(;;) {