comparison arogue5/rip.c @ 69:88dc6813e36a

arogue5: update the score list before prompting to exit.
author elwin
date Sat, 11 Aug 2012 20:58:24 +0000
parents c49f7927b0fa
children ee250e3646fd
comparison
equal deleted inserted replaced
68:7a7fb9b810e1 69:88dc6813e36a
470 #endif 470 #endif
471 } 471 }
472 } 472 }
473 } 473 }
474 474
475 fseek(outf, 0L, 0);
476 /*
477 * Update the list file
478 */
479 scoreout(top_ten, outf);
480 fclose(outf);
481
475 /* 482 /*
476 * SCOREIT -- rogue -s option. Never started curses if this option. 483 * SCOREIT -- rogue -s option. Never started curses if this option.
477 * UPDATE -- network scoring update. Never started curses if this option. 484 * UPDATE -- network scoring update. Never started curses if this option.
478 * EDITSCORE -- want to delete or change a score. 485 * EDITSCORE -- want to delete or change a score.
479 */ 486 */
555 } 562 }
556 } 563 }
557 else printf("\n"); 564 else printf("\n");
558 } 565 }
559 } 566 }
560 if ((flags != SCOREIT) && (flags != UPDATE)) {
561 printf("\n[Press return to exit]");
562 fflush(stdout);
563 fgets(prbuf,80,stdin);
564 }
565 /* if (prflags == EDITSCORE) endwin(); */ /* End editing windowing */ 567 /* if (prflags == EDITSCORE) endwin(); */ /* End editing windowing */
566 } 568 }
567 fseek(outf, 0L, 0); 569
568 /* 570 if ((flags != SCOREIT) && (flags != UPDATE)) {
569 * Update the list file 571 printf("\n[Press return to exit]");
570 */ 572 fflush(stdout);
571 scoreout(top_ten, outf); 573 fgets(prbuf,80,stdin);
572 fclose(outf); 574 }
573 } 575 }
574 576
575 void writelog(unsigned long amount, int flags, short monst) { 577 void writelog(unsigned long amount, int flags, short monst) {
576 #ifdef LOGFILE 578 #ifdef LOGFILE
577 FILE *logfi; 579 FILE *logfi;