summary refs log tree commit diff homepage
path: root/play.c
diff options
context:
space:
mode:
Diffstat (limited to 'play.c')
-rw-r--r--play.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.c b/play.c
index 251e826..23011f6 100644
--- a/play.c
+++ b/play.c
@@ -124,7 +124,7 @@ static void draw(size_t new) {
 	);
 	mvhline(ScoresY + 1, ScoresX, '=', ScoresWidth);
 
-	int newY;
+	int newY = -1;
 	for (size_t i = 0; i < ScoresTop; ++i) {
 		if (!scores[i].score) break;
 		if (i == new) newY = ScoresY + 2 + i;
@@ -175,6 +175,7 @@ int main(void) {
 		fclose(file);
 	}
 
+	noecho();
 	curs_set(0);
 	getch();
 	endwin();
map?id=4cdc65c3fee1c54b1049c9daa0123a8074145780&follow=1'>Use Tarmak 3 on Linux consoleJune McEnroe 2017-08-25Install ddateJune McEnroe 2017-08-19Move nethack options to envJune McEnroe 2017-08-17Remove scala syntax fileJune McEnroe 2017-08-06Add wakeJune McEnroe 2017-08-04Use $() in install.shJune McEnroe 2017-08-02Create Code Tarmak 3 layoutJune McEnroe 2017-07-31Add tupJune McEnroe 2017-07-31Use designated initializer for hnel tableJune McEnroe 2017-07-30Add juneJune McEnroe 2017-07-30Play nethack as ValkyrieJune McEnroe 2017-07-28Add toggle to hnelJune McEnroe 2017-07-28Install slJune McEnroe 2017-07-25Add up, supJune McEnroe 2017-07-24Autopickup ringsJune McEnroe 2017-07-24Name dogJune McEnroe 2017-07-23Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe