comparison arogue7/mdport.c @ 145:aac28331e71d

Advanced Rogue family: fix the "score" option. Changing the score file (when permitted) now works again, closing the old score file and opening the new one.
author John "Elwin" Edwards
date Wed, 20 May 2015 08:42:17 -0400
parents 708bb2dea17c
children 9aa9b9a2e159
comparison
equal deleted inserted replaced
144:708bb2dea17c 145:aac28331e71d
675 #else /* USG5_2.... curses */ 675 #else /* USG5_2.... curses */
676 flushinp(); 676 flushinp();
677 #endif 677 #endif
678 } 678 }
679 679
680 extern int scorefd;
681 extern char score_file[];
682
683 void
684 md_reopen_score(void)
685 {
686 if (scorefd > 0)
687 close(scorefd);
688 scorefd = open(score_file, O_RDWR | O_CREAT, 0666);
689 }
690
680 /* 691 /*
681 Cursor/Keypad Support 692 Cursor/Keypad Support
682 693
683 Sadly Cursor/Keypad support is less straightforward than it should be. 694 Sadly Cursor/Keypad support is less straightforward than it should be.
684 695