UltraRogue: fix options menu.

When displaying options, get_restr() did not position the cursor
correctly, resulting in values being duplicated.
This commit is contained in:
John "Elwin" Edwards 2017-11-26 11:34:45 -05:00
parent 5e60293223
commit a489fa501e

View file

@ -546,8 +546,10 @@ get_restr(opt_arg *opt, WINDOW *win)
getyx(win, oy, ox);
put_str(opt, win);
if (!use_savedir)
return get_str(opt, win);
if (!use_savedir) {
wmove(win, oy, ox);
return get_str(opt, win);
}
getyx(win, ny, nx);
while(keep_up)