changeset 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 d815c40c3753
children 5b6855d5d089
files urogue/options.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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)