comparison arogue5/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 65f3da34578a
children 600873555ec0
comparison
equal deleted inserted replaced
144:708bb2dea17c 145:aac28331e71d
693 #else /* USG5_2.... curses */ 693 #else /* USG5_2.... curses */
694 flushinp(); 694 flushinp();
695 #endif 695 #endif
696 } 696 }
697 697
698 extern int scorefd;
699 extern char score_file[];
700
701 void
702 md_reopen_score(void)
703 {
704 if (scorefd > 0)
705 close(scorefd);
706 scorefd = open(score_file, O_RDWR | O_CREAT, 0666);
707 }
708
698 /* 709 /*
699 Cursor/Keypad Support 710 Cursor/Keypad Support
700 711
701 Sadly Cursor/Keypad support is less straightforward than it should be. 712 Sadly Cursor/Keypad support is less straightforward than it should be.
702 713