Mercurial > hg > early-roguelike
diff urogue/options.c @ 290:2b452dbf0138
UltraRogue: fix options menu.
When displaying options, get_restr() did not position the cursor
correctly, resulting in values being duplicated.
author | John "Elwin" Edwards |
---|---|
date | Sun, 26 Nov 2017 11:34:45 -0500 |
parents | ac42afd962e4 |
children | 9dcf3344d3fd |
line wrap: on
line diff
--- a/urogue/options.c Fri Nov 24 16:22:10 2017 -0500 +++ b/urogue/options.c Sun Nov 26 11:34:45 2017 -0500 @@ -546,8 +546,10 @@ 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)