Changeset 966
- Timestamp:
- 06/28/08 06:15:29 (3 months ago)
- Files:
-
- trunk/src/Makefile.inc (modified) (4 diffs)
- trunk/src/Makefile.src (modified) (6 diffs)
- trunk/src/compress.c (deleted)
- trunk/src/compress.h (deleted)
- trunk/src/death.c (modified) (1 diff)
- trunk/src/dungeon.c (modified) (1 diff)
- trunk/src/externs.h (modified) (2 diffs)
- trunk/src/files.c (modified) (2 diffs)
- trunk/src/load.c (modified) (1 diff)
- trunk/src/loadsave.c (deleted)
- trunk/src/main.c (modified) (1 diff)
- trunk/src/signals.c (modified) (1 diff)
- trunk/src/variable.c (modified) (1 diff)
- trunk/src/wizard.c (modified) (1 diff)
- trunk/src/z-blockfile.c (deleted)
- trunk/src/z-blockfile.h (deleted)
- trunk/src/z-smap.c (deleted)
- trunk/src/z-smap.h (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Makefile.inc
r887 r966 28 28 option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 29 29 game-event.h 30 compress.o: compress.c compress.h h-basic.h31 30 cmd0.o: cmd0.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 32 31 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ … … 95 94 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 96 95 option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 97 loadsave.o: loadsave.c angband.h h-basic.h z-file.h z-form.h z-util.h \98 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \99 defines.h option.h types.h ui.h z-type.h object.h externs.h \100 z-blockfile.h z-smap.h101 96 melee1.o: melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 102 97 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ … … 199 194 wiz-stats.o: wiz-stats.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 200 195 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 201 defines.h option.h types.h ui.h z-type.h object.h externs.h wizard.h 196 defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h \ 197 wizard.h tvalsval.h 202 198 wizard.o: wizard.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 203 199 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ … … 227 223 z-util.o: z-util.c z-util.h h-basic.h 228 224 z-virt.o: z-virt.c z-virt.h h-basic.h z-util.h 229 z-blockfile.o: z-blockfile.c z-virt.h h-basic.h z-blockfile.h z-file.h230 z-smap.o: z-smap.c z-virt.h h-basic.h z-file.h z-smap.htrunk/src/Makefile.src
r834 r966 12 12 angband.h \ 13 13 cmds.h \ 14 compress.h \15 14 config.h \ 16 15 defines.h \ … … 30 29 ui-menu.h \ 31 30 wizard.h \ 32 z-blockfile.h \33 31 z-file.h \ 34 32 z-form.h \ … … 36 34 z-quark.h \ 37 35 z-rand.h \ 38 z-smap.h \39 36 z-term.h \ 40 37 z-type.h \ … … 47 44 48 45 ZFILES = z-file.o z-form.o z-msg.o z-quark.o z-rand.o z-term.o z-type.o \ 49 z-util.o z-virt.o z-blockfile.o z-smap.o46 z-util.o z-virt.o 50 47 MAINFILES = main.o main-crb.o main-gcu.o $(GTKMAINFILES) \ 51 48 main-ros.o main-sdl.o main-win.o main-x11.o snd-sdl.o … … 60 57 button.o \ 61 58 cave.o \ 62 compress.o \63 59 cmd0.o \ 64 60 cmd1.o \ … … 81 77 init2.o \ 82 78 load.o \ 83 loadsave.o \84 79 melee1.o \ 85 80 melee2.o \ trunk/src/death.c
r965 r966 445 445 446 446 /* Save dead player */ 447 if ( new_save ? !save(savefile) :!old_save())447 if (!old_save()) 448 448 { 449 449 msg_print("death save failed!"); trunk/src/dungeon.c
r928 r966 1741 1741 if (savefile[0] && file_exists(savefile)) 1742 1742 { 1743 bool ok = new_save ? load(savefile) :old_load();1743 bool ok = old_load(); 1744 1744 if (!ok) quit("broken savefile"); 1745 1745 trunk/src/externs.h
r965 r966 370 370 extern bool old_load(void); 371 371 372 /* loadsave.c */373 bool save(char *filename);374 bool load(char *filename);375 376 372 /* melee1.c */ 377 373 bool check_hit(int power, int level); … … 687 683 #endif /* ALLOW_BORG */ 688 684 689 /* Testing Hacks XXX */ 690 extern bool new_save; 685 686 extern u16b lazymove_delay; 687 691 688 692 689 #endif /* !INCLUDED_EXTERNS_H */ 693 690 694 695 extern u16b lazymove_delay;trunk/src/files.c
r964 r966 2663 2663 2664 2664 /* Save the player */ 2665 if ( new_save ? save(savefile) :old_save())2665 if (old_save()) 2666 2666 { 2667 2667 prt("Saving game... done.", 0, 0); … … 2782 2782 2783 2783 /* Panic save, or get worried */ 2784 if ( new_save ? !save(panic_savefile) :!old_save()) quit("panic save failed!");2784 if (!old_save()) quit("panic save failed!"); 2785 2785 2786 2786 trunk/src/load.c
r958 r966 1986 1986 if (err) what = "Cannot parse savefile"; 1987 1987 } 1988 1989 /* Try using the new savefile code instead */1990 if (err)1991 {1992 if (load(savefile))1993 {1994 new_save = TRUE;1995 return TRUE;1996 }1997 }1998 1988 } 1999 1989 trunk/src/main.c
r958 r966 291 291 { 292 292 new_game = TRUE; 293 break;294 }295 296 case 'L':297 {298 new_save = TRUE;299 293 break; 300 294 } trunk/src/signals.c
r965 r966 217 217 218 218 /* Attempt to save */ 219 if ( new_save ? save(panic_savefile) :old_save())219 if (old_save()) 220 220 { 221 221 Term_putstr(45, 23, -1, TERM_RED, "Panic save succeeded!"); trunk/src/variable.c
r958 r966 771 771 u16b inscriptions_count = 0; 772 772 773 /* Use new-type savefiles */774 bool new_save;775 776 773 777 774 /* Delay in centiseconds before moving to allow another keypress */ trunk/src/wizard.c
r938 r966 1675 1675 } 1676 1676 1677 case 'S':1678 {1679 save("savefile.new");1680 break;1681 }1682 1683 1677 /* Teleport */ 1684 1678 case 't':
