Changeset 1060
- Timestamp:
- 08/05/07 01:53:46 (1 year ago)
- Files:
-
- 1.8.3/trunk/CHANGES.182 (modified) (1 diff)
- 1.8.3/trunk/src/game.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/trunk/CHANGES.182
r1036 r1060 13 13 14 14 ========================================================================== 15 16 Version 1.8.2 patchlevel 7 ???? ??, 2007 17 18 Fixes: 19 * Clarified the behavior of eval() and get_eval() in help. 20 Suggested by Talvo and Javelin. 21 * A failed db save no longer broadcasts a success message 22 in addition to a failure one. Reported by Cooee. 23 * The open database file wasn't getting closed on a failed 24 save. 15 25 16 26 Version 1.8.2 patchlevel 6 July 9, 2007 1.8.3/trunk/src/game.c
r1032 r1060 95 95 extern const unsigned char *tables; 96 96 extern void conf_default_set(void); 97 static intdump_database_internal(void);97 static bool dump_database_internal(void); 98 98 static FILE *db_open(const char *filename); 99 99 static FILE *db_open_write(const char *filename); … … 310 310 jmp_buf db_err; 311 311 312 static int312 static bool 313 313 dump_database_internal(void) 314 314 { … … 330 330 flag_broadcast("WIZARD ROYALTY", 0, 331 331 T("GAME: ERROR! Database save failed!")); 332 if (f) 333 db_close(f); 332 334 #ifndef PROFILING 333 335 #ifdef HAS_ITIMER … … 335 337 #endif 336 338 #endif 337 return 1;339 return false; 338 340 } else { 339 341 local_dump_database(); … … 413 415 #endif 414 416 415 return 0;417 return true; 416 418 } 417 419 … … 512 514 513 515 do_rawlog(LT_ERR, "DUMPING: %s.#%d#", globals.dumpfile, epoch); 514 dump_database_internal();515 do_rawlog(LT_ERR, "DUMPING: %s.#%d# (done)", globals.dumpfile, epoch);516 if (dump_database_internal()) 517 do_rawlog(LT_ERR, "DUMPING: %s.#%d# (done)", globals.dumpfile, epoch); 516 518 } 517 519 … … 529 531 { 530 532 pid_t child; 531 intnofork, status, split;533 bool nofork, status, split; 532 534 epoch++; 533 535 … … 606 608 } else { 607 609 reserve_fd(); 608 if ( DUMP_NOFORK_COMPLETE && *DUMP_NOFORK_COMPLETE)610 if (status && DUMP_NOFORK_COMPLETE && *DUMP_NOFORK_COMPLETE) 609 611 flag_broadcast(0, 0, "%s", DUMP_NOFORK_COMPLETE); 610 612 }
