home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-08 | 38.1 KB | 1,365 lines |
- diff -cr oldumoria/CHANGES umoria/CHANGES
- *** oldumoria/CHANGES Thu May 10 11:49:31 1990
- --- umoria/CHANGES Sun May 27 15:38:31 1990
- ***************
- *** 602,604
- resource.hqx: recompiled the mac resource files
- macscore.c, mac.c: changed control characters '...' to \311
- all: distribute version 5.2.0
-
- --- 602,656 -----
- resource.hqx: recompiled the mac resource files
- macscore.c, mac.c: changed control characters '...' to \311
- all: distribute version 5.2.0
- + ----------- 5/14
- + death.c, externs.h, io.c, ms_misc.c: Turbo C changes, void sleep() instead
- + of unsigned sleep(), don't call reset_term() before exiting, ifdef
- + out definition of sleep() in ms_misc.c, declare signal handler as
- + void not int
- + generate.c, types.h: change IBMPC_TURBO_C defines to the proper TURBOC define
- + io.c: shell_out(), MSDOS code parameter to inkey() call deleted
- + externs.h: count_msg_print() changed from (int) to (char *)
- + io.c: get_check(), add code to use 'y' if LINT_ARGS defined, pause_exit()
- + add code to use 'delay' for MSDOS machines
- + ms_misc.c: clear_screen(0,0) changed to clear_screen()
- + main.c: set stack size for TURBOC by declaring the _stksize variable
- + misc2.c: player_saves(), split expression up because MPW C couldn't handle it
- + save.c: include time.h for for the Mac, delete var 'i' in save_char (unused),
- + get_char() add code for MAC to return FALSE if savefile doesn't exist
- + mac.c: add call to initsavedefaults() in main()
- + mac/ERRORS: document problem with mac Makefile
- + -------- 5/15
- + externs.h: remove decl of py_bash(), which is in moria2.c and static
- + --------- 5/17
- + dungeon.c: move search_off() call after check_view(), as panel_* variables
- + must be valid before search_off() is called
- + -------- 5/18
- + all: 7 files did not end with newlines, 5 hqx files, and origcmds.hlp,
- + misc/README also did not end with a newline
- + -------- 5/21
- + constant.h, version.hlp, moria.r: change version number to 5.2.1
- + ScrnMgr.doc: split all lines greater than 80 characters, to make the file
- + more portable
- + --------- 5/22
- + death.c: in mac sources, there was a 'true' instead of a 'TRUE'
- + ms_misc.c: Turbo C sscanf() incorrectly reads a newline from a blank line,
- + add check for newline to code that reads configuration file
- + spells.c: door_creation(), called popt() before calling delete_object()
- + which could then invalidate the value returned by popt, moved
- + popt() call after the delete_object() call
- + ----------- 5/25
- + creature.c: fix the invincible/invisible monster bug, multiply_monster()
- + was creating children on top of the parent, thus killing the parent
- + for carnivorous monsters
- + death.c, externs.h, generate.c, io.c, main.c, ms_misc.c, signals.c, types.h:
- + change all TURBOC defines to __TURBOC__
- + util/printit: new version of the printit program by Carl Hommel, fixed up
- + to be somewhat more portable and to use only moria defined constants
- + -------- 5/27
- + player.c, tables.c, variable.c: Turbo C can not accept any file with more than
- + 64K global variables, so variable.c split into three parts, also
- + updated all makefiles to refer to all three files
- + mac files: all three mac Makefiles modified to delete obsolete references to
- + CInterface.o and CRuntime.o, scrnmgr Makefile modified to automatically
- + combine the two ScrnMgr.c parts, README updated to document a problem
- + with the Makefile not appending resources and text files sometimes
- diff -cr oldumoria/ERRORS umoria/ERRORS
- *** oldumoria/ERRORS Thu May 10 11:37:10 1990
- --- umoria/ERRORS Sun May 27 15:38:29 1990
- ***************
- *** 1,3
- for Atari ST, find and fix rest of the &/| long constant problems, esp. see
- moria1.c
-
-
- --- 1,23 -----
- + on some unknown version of Sun OS, with some unknown compiler version,
- + on a Sun 3/80, umoria core dumps while restoring a savefile if compiled
- + with -O2, works if compiled with -O1
- +
- + mac version does not clear screen properly when running a second
- + character, try looking for variables which should be cleared but aren't,
- + especially the race display, and object pointers
- +
- + typing escape to the wizard mode change character prompts does not
- + clear the message line
- +
- + can actually get the 'internal error in identify scroll' message, user had
- + two(one?) unidentified identify scrolls, and one known identify scroll,
- + read the known one, identified the unknown ones, got the combining message,
- + and then got the internal error message
- +
- + need to clear the heavy_weapon state everytime a new weapon is wielded,
- + so that you don't get 'can wield' message when going from heavy to light,
- + but you do get a 'can't' wield' message when going from heavy to heavy
- +
- for Atari ST, find and fix rest of the &/| long constant problems, esp. see
- moria1.c
-
- ***************
- *** 13,22
- I did this, note the def of errno in files.c for MSDOS
-
- clock in misc1.c needs to be changed, Mac (TC?) defines this
- -
- - i believe it is possible for two oozes to eat each other, and this
- - will cause problems; there definitely IS a bug in the m_list code
- - somewhere
-
- a few routines still equate '\0' with ESCAPE, such as get_com(),
- fix them to ignore NULL characters?, also get_com() should echo "escape"
-
- --- 33,38 -----
- I did this, note the def of errno in files.c for MSDOS
-
- clock in misc1.c needs to be changed, Mac (TC?) defines this
-
- a few routines still equate '\0' with ESCAPE, such as get_com(),
- fix them to ignore NULL characters?, also get_com() should echo "escape"
- diff -cr oldumoria/README umoria/README
- *** oldumoria/README Wed May 9 16:05:57 1990
- --- umoria/README Mon May 21 00:41:02 1990
- ***************
- *** 3,9
- second major release of the game. These sources have been compiled
- successfully at least once in the following environments: UNIX (4.2 BSD,
- 4.3 BSD, SYS V, Xenix, and many similar systems), IBM-PC (MSC 5.0,
- ! Turbo C 4.0), Mac (MPW 3.0), Atari ST (MWC, GCC). VMS and Mac (Think C 4.0)
- ports are in progress.
-
- I consider these to be beta sources. That means they will probably work
-
- --- 3,9 -----
- second major release of the game. These sources have been compiled
- successfully at least once in the following environments: UNIX (4.2 BSD,
- 4.3 BSD, SYS V, Xenix, and many similar systems), IBM-PC (MSC 5.0,
- ! Turbo C 2.0), Mac (MPW 3.0), Atari ST (MWC, GCC). VMS and Mac (Think C 4.0)
- ports are in progress.
-
- I consider these to be beta sources. That means they will probably work
- diff -cr oldumoria/atari_st/Makefile umoria/atari_st/Makefile
- *** oldumoria/atari_st/Makefile Mon Feb 26 21:27:46 1990
- --- umoria/atari_st/Makefile Sun May 27 15:48:08 1990
- ***************
- *** 12,18
- generate.c sets.c dungeon.c creature.c death.c eat.c help.c magic.c\
- potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c\
- wizard.c store2.c signals.c moria1.c moria2.c monsters.c\
- ! treasure.c variable.c rnd.c recall.c atarist.c undef.c
-
- OBJS = main.o misc1.o misc2.o store1.o files.o io.o create.o desc.o\
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
-
- --- 12,19 -----
- generate.c sets.c dungeon.c creature.c death.c eat.c help.c magic.c\
- potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c\
- wizard.c store2.c signals.c moria1.c moria2.c monsters.c\
- ! treasure.c variable.c rnd.c recall.c atarist.c undef.c\
- ! player.c tables.c
-
- OBJS = main.o misc1.o misc2.o store1.o files.o io.o create.o desc.o\
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- ***************
- *** 18,24
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
- wizard.o store2.o signals.o moria1.o moria2.o monsters.o\
- ! treasure.o variable.o rnd.o recall.o atarist.o undef.o curses.o
-
- LIBFILES = moria_hours moria_help moria_orig_help moria_wiz_help \
- moria_orig_wiz_help moria_man
-
- --- 19,26 -----
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
- wizard.o store2.o signals.o moria1.o moria2.o monsters.o\
- ! treasure.o variable.o rnd.o recall.o atarist.o undef.o curses.o\
- ! player.o tables.o
-
- LIBFILES = moria_hours moria_help moria_orig_help moria_wiz_help \
- moria_orig_wiz_help moria_man
- ***************
- *** 84,89
- monsters.o: constant.h types.h config.h
- moria1.o: constant.h types.h externs.h config.h
- moria2.o: constant.h types.h externs.h config.h
- potions.o: constant.h types.h externs.h config.h
- prayer.o: constant.h types.h externs.h config.h
- recall.o: constant.h config.h types.h externs.h
-
- --- 86,92 -----
- monsters.o: constant.h types.h config.h
- moria1.o: constant.h types.h externs.h config.h
- moria2.o: constant.h types.h externs.h config.h
- + player.o: constant.h types.h config.h
- potions.o: constant.h types.h externs.h config.h
- prayer.o: constant.h types.h externs.h config.h
- recall.o: constant.h config.h types.h externs.h
- ***************
- *** 96,101
- staffs.o: constant.h types.h externs.h config.h
- store1.o: constant.h types.h externs.h config.h
- store2.o: constant.h types.h externs.h config.h
- treasure.o: constant.h types.h config.h
- atarist.o: constant.h config.h types.h externs.h
- variable.o: constant.h types.h config.h
-
- --- 99,105 -----
- staffs.o: constant.h types.h externs.h config.h
- store1.o: constant.h types.h externs.h config.h
- store2.o: constant.h types.h externs.h config.h
- + tables.o: constant.h types.h config.h
- treasure.o: constant.h types.h config.h
- atarist.o: constant.h config.h types.h externs.h
- variable.o: constant.h types.h config.h
- diff -cr oldumoria/files/version.hlp umoria/files/version.hlp
- *** oldumoria/files/version.hlp Wed May 9 15:11:55 1990
- --- umoria/files/version.hlp Mon May 21 16:53:08 1990
- ***************
- *** 52,55
- not for profit purposes provided that this copyright and statement are
- included in all such copies.
-
- ! Umoria Version 5.2, patch level 0
-
- --- 52,55 -----
- not for profit purposes provided that this copyright and statement are
- included in all such copies.
-
- ! Umoria Version 5.2, patch level 1
- diff -cr oldumoria/ibmpc/MLINK.LNK umoria/ibmpc/MLINK.LNK
- *** oldumoria/ibmpc/MLINK.LNK Fri May 4 16:50:21 1990
- --- umoria/ibmpc/MLINK.LNK Sun May 27 15:43:37 1990
- ***************
- *** 4,7
- POTIONS+PRAYER+RND+SAVE+
- SCROLLS+SETS+SIGNALS+SPELLS+STAFFS+
- STORE1+STORE2+TREASURE+VARIABLE+
- ! WANDS+WIZARD+IO+MS_MISC+UNDEF+RECALL,moria,,pccurses
-
- --- 4,8 -----
- POTIONS+PRAYER+RND+SAVE+
- SCROLLS+SETS+SIGNALS+SPELLS+STAFFS+
- STORE1+STORE2+TREASURE+VARIABLE+
- ! WANDS+WIZARD+IO+MS_MISC+UNDEF+RECALL+
- ! PLAYER.C+TABLES.C,moria,,pccurses
- diff -cr oldumoria/ibmpc/MORIA.CNF umoria/ibmpc/MORIA.CNF
- *** oldumoria/ibmpc/MORIA.CNF Fri May 4 16:50:07 1990
- --- umoria/ibmpc/MORIA.CNF Mon May 14 13:54:08 1990
- ***************
- *** 1,4
- ! # Configuration file for PC MORIA 4.87
- #
- # All lines that have the # character as the first character are
- # comment lines. Blank lines are totally ignored.
-
- --- 1,4 -----
- ! # Configuration file for PC MORIA 5.x
- #
- # All lines that have the # character as the first character are
- # comment lines. Blank lines are totally ignored.
- diff -cr oldumoria/ibmpc/ms_misc.c umoria/ibmpc/ms_misc.c
- *** oldumoria/ibmpc/ms_misc.c Tue Mar 27 14:27:05 1990
- --- umoria/ibmpc/ms_misc.c Fri May 25 17:14:13 1990
- ***************
- *** 57,62
- return cp;
- }
-
- unsigned int
- sleep(secs)
- int secs;
-
- --- 57,63 -----
- return cp;
- }
-
- + #ifndef __TURBOC__
- unsigned int
- sleep(secs)
- int secs;
- ***************
- *** 68,73
- /* nothing */;
- return 0;
- }
-
- void
- error(fmt, a1, a2, a3, a4)
-
- --- 69,75 -----
- /* nothing */;
- return 0;
- }
- + #endif
-
- void
- error(fmt, a1, a2, a3, a4)
- ***************
- *** 153,159
- continue;
-
- cnt = sscanf(buf, "%s", opt);
- ! if (cnt == 0 || opt[0] == '\0')
- continue;
-
- /* Go through possible variables
-
- --- 155,163 -----
- continue;
-
- cnt = sscanf(buf, "%s", opt);
- ! /* Turbo C will incorrectly read a newline from an empty line,
- ! MSC will read correctly read a NULL character */
- ! if (cnt == 0 || opt[0] == '\0' || opt[0] == '\n')
- continue;
-
- /* Go through possible variables
- ***************
- *** 382,388
- {
- char buf[80];
-
- ! clear_screen(0, 0);
- wmove(stdscr,0,0);
- waddstr(stdscr," *********************");
- wmove(stdscr,1,0);
-
- --- 386,392 -----
- {
- char buf[80];
-
- ! clear_screen();
- wmove(stdscr,0,0);
- waddstr(stdscr," *********************");
- wmove(stdscr,1,0);
- diff -cr oldumoria/mac/README umoria/mac/README
- *** oldumoria/mac/README Sun Mar 4 03:38:31 1990
- --- umoria/mac/README Sun May 27 15:32:40 1990
- ***************
- *** 28,30
-
- a. Set the directory to "{NewDir}"
- b. Build (cmd-B) "Moria" (or execute "BuildProgram Moria").
-
- --- 28,34 -----
-
- a. Set the directory to "{NewDir}"
- b. Build (cmd-B) "Moria" (or execute "BuildProgram Moria").
- + c. If Moria doesn't seem to work right, it is probably because
- + the resource and text files weren't appended to the application.
- + Either delete the file Moria and rebuild, or else execute by hand
- + the commands which append the resources and text files.
- diff -cr oldumoria/mac/mac.c umoria/mac/mac.c
- *** oldumoria/mac/mac.c Thu May 10 11:42:44 1990
- --- umoria/mac/mac.c Mon May 14 19:11:52 1990
- ***************
- *** 1674,1679
-
- restart_flag = FALSE;
-
- /* Find out if user has started from a saved game */
- savedgame = getfinderfile();
-
-
- --- 1674,1681 -----
-
- restart_flag = FALSE;
-
- + initsavedefaults ();
- +
- /* Find out if user has started from a saved game */
- savedgame = getfinderfile();
-
- diff -cr oldumoria/mac/macdata.c umoria/mac/macdata.c
- *** oldumoria/mac/macdata.c Sun Mar 4 03:38:35 1990
- --- umoria/mac/macdata.c Sun May 27 15:19:27 1990
- ***************
- *** 1,7
- /* This program creates the initialized global data resources. */
- /* It is compiled as an MPW tool. */
-
- ! /* Monsters.c, treasur1.c, treasur2.c, variable.c are included. */
- /* But, when this program is built, the compiler is instructed to */
- /* actually include the initialized global data. We just copy it */
- /* into resource handles and dump them to the executable. */
-
- --- 1,7 -----
- /* This program creates the initialized global data resources. */
- /* It is compiled as an MPW tool. */
-
- ! /* Monsters.c, player.c, tables.c, treasure.c, and variables.c are included.*/
- /* But, when this program is built, the compiler is instructed to */
- /* actually include the initialized global data. We just copy it */
- /* into resource handles and dump them to the executable. */
- diff -cr oldumoria/mac/moria.r umoria/mac/moria.r
- *** oldumoria/mac/moria.r Wed May 9 15:14:30 1990
- --- umoria/mac/moria.r Mon May 21 16:54:25 1990
- ***************
- *** 13,19
- };
-
- resource 'MRIA' (0) {
- ! "Moria 5.2.0 for the Macintosh: Implementation 2.0b1"
- };
-
- resource 'BNDL' (128, purgeable) {
-
- --- 13,19 -----
- };
-
- resource 'MRIA' (0) {
- ! "Moria 5.2.1 for the Macintosh: Implementation 2.0b1"
- };
-
- resource 'BNDL' (128, purgeable) {
- ***************
- *** 205,211
- StaticText {
- disabled,
- "Moria for the Macintosh\n"
- ! "Version 5.2.0\n"
- "Implementation 2.0b1\n\n\n"
- "Programmers:\n"
- "Robert Alan Koeneke\n"
-
- --- 205,211 -----
- StaticText {
- disabled,
- "Moria for the Macintosh\n"
- ! "Version 5.2.1\n"
- "Implementation 2.0b1\n\n\n"
- "Programmers:\n"
- "Robert Alan Koeneke\n"
- ***************
- *** 560,566
- {8, 52, 40, 380},
- StaticText {
- disabled,
- ! "Moria for the Macintosh Version 5.2.0"
- },
- /* [6] */
- {8, 8, 40, 40},
-
- --- 560,566 -----
- {8, 52, 40, 380},
- StaticText {
- disabled,
- ! "Moria for the Macintosh Version 5.2.1"
- },
- /* [6] */
- {8, 8, 40, 40},
- ***************
- *** 584,590
-
- resource 'TEXT' (512, "Mac Help", purgeable) {
- "This is an beta version of Mac Moria, implementation 2.0b1, which is "
- ! "based on the Umoria 5.2.0 sources. Please send comments and bug repor"
- "ts to wilson@ernie.Berkeley.EDU (Jim Wilson) or 73230.224@compuserve.c"
- "om (Curtis McCauley).\n\n"
- "Users of previous versions o"
-
- --- 584,590 -----
-
- resource 'TEXT' (512, "Mac Help", purgeable) {
- "This is an beta version of Mac Moria, implementation 2.0b1, which is "
- ! "based on the Umoria 5.2.1 sources. Please send comments and bug repor"
- "ts to wilson@ernie.Berkeley.EDU (Jim Wilson) or 73230.224@compuserve.c"
- "om (Curtis McCauley).\n\n"
- "Users of previous versions o"
- diff -cr oldumoria/source/constant.h umoria/source/constant.h
- *** oldumoria/source/constant.h Wed May 9 15:09:55 1990
- --- umoria/source/constant.h Mon May 21 16:52:42 1990
- ***************
- *** 24,30
- /* Current version number of Moria */
- #define CUR_VERSION_MAJ 5 /* version 5.2 */
- #define CUR_VERSION_MIN 2
- ! #define PATCH_LEVEL 0
-
- #ifndef TRUE
- #define TRUE 1
-
- --- 24,30 -----
- /* Current version number of Moria */
- #define CUR_VERSION_MAJ 5 /* version 5.2 */
- #define CUR_VERSION_MIN 2
- ! #define PATCH_LEVEL 1
-
- #ifndef TRUE
- #define TRUE 1
- diff -cr oldumoria/source/creature.c umoria/source/creature.c
- *** oldumoria/source/creature.c Fri May 4 19:33:39 1990
- --- umoria/source/creature.c Fri May 25 17:07:25 1990
- ***************
- *** 905,911
- attackn++;
- else
- break;
- ! }
- }
-
-
-
- --- 905,911 -----
- attackn++;
- else
- break;
- ! }
- }
-
-
- ***************
- *** 1389,1395
- {
- j = y - 2 + randint(3);
- k = x - 2 + randint(3);
- ! if (in_bounds(j, k))
- {
- c_ptr = &cave[j][k];
- if ((c_ptr->fval <= MAX_OPEN_SPACE) && (c_ptr->tptr == 0) &&
-
- --- 1389,1397 -----
- {
- j = y - 2 + randint(3);
- k = x - 2 + randint(3);
- ! /* don't create a new creature on top of the old one, that causes
- ! invincible/invisible creatures to appear */
- ! if (in_bounds(j, k) && (j != y || k != x))
- {
- c_ptr = &cave[j][k];
- if ((c_ptr->fval <= MAX_OPEN_SPACE) && (c_ptr->tptr == 0) &&
- diff -cr oldumoria/source/death.c umoria/source/death.c
- *** oldumoria/source/death.c Fri May 4 18:19:28 1990
- --- umoria/source/death.c Fri May 25 17:10:53 1990
- ***************
- *** 257,263
- break;
- case 'y': case 'Y':
- func = 'Y';
- ! ok = true;
- break;
- case 'n': case 'N':
- func = 'N';
-
- --- 257,263 -----
- break;
- case 'y': case 'Y':
- func = 'Y';
- ! ok = TRUE;
- break;
- case 'n': case 'N':
- func = 'N';
- ***************
- *** 549,554
- if (i > 0)
- display_scores (i, TRUE);
- erase_line (23, 0);
- restore_term ();
- #ifdef MAC
- /* Undo what has been done */
-
- --- 549,555 -----
- if (i > 0)
- display_scores (i, TRUE);
- erase_line (23, 0);
- + #ifndef __TURBOC__
- restore_term ();
- #endif
- #ifdef MAC
- ***************
- *** 550,555
- display_scores (i, TRUE);
- erase_line (23, 0);
- restore_term ();
- #ifdef MAC
- /* Undo what has been done */
- enablefilemenu(TRUE);
-
- --- 551,557 -----
- erase_line (23, 0);
- #ifndef __TURBOC__
- restore_term ();
- + #endif
- #ifdef MAC
- /* Undo what has been done */
- enablefilemenu(TRUE);
- diff -cr oldumoria/source/dungeon.c umoria/source/dungeon.c
- *** oldumoria/source/dungeon.c Mon May 7 23:56:50 1990
- --- umoria/source/dungeon.c Thu May 17 14:31:30 1990
- ***************
- *** 82,89
- find_count = 0;
- new_level_flag = FALSE;
- find_flag = FALSE;
- - if (search_flag)
- - search_off();
- teleport_flag = FALSE;
- mon_tot_mult = 0;
- cave[char_row][char_col].cptr = 1;
-
- --- 82,87 -----
- find_count = 0;
- new_level_flag = FALSE;
- find_flag = FALSE;
- teleport_flag = FALSE;
- mon_tot_mult = 0;
- cave[char_row][char_col].cptr = 1;
- ***************
- *** 91,96
- panel_row = panel_col = -1;
- /* Light up the area around character */
- check_view ();
- /* Light, but do not move critters */
- creatures(FALSE);
- /* Print the depth */
-
- --- 89,99 -----
- panel_row = panel_col = -1;
- /* Light up the area around character */
- check_view ();
- + /* must do this after panel_row/col set to -1, because search_off() will call
- + check_view(), and so the panel_* variables must be valid before
- + search_off() is called */
- + if (search_flag)
- + search_off();
- /* Light, but do not move critters */
- creatures(FALSE);
- /* Print the depth */
- diff -cr oldumoria/source/externs.h umoria/source/externs.h
- *** oldumoria/source/externs.h Fri May 4 20:49:41 1990
- --- umoria/source/externs.h Fri May 25 17:11:07 1990
- ***************
- *** 297,303
- void clear_from(int);
- void print(char, int, int);
- void move_cursor_relative(int, int);
- ! void count_msg_print(int);
- void prt(char *, int, int);
- void move_cursor(int, int);
- void msg_print(char *);
-
- --- 297,303 -----
- void clear_from(int);
- void print(char, int, int);
- void move_cursor_relative(int, int);
- ! void count_msg_print(char *);
- void prt(char *, int, int);
- void move_cursor(int, int);
- void msg_print(char *);
- ***************
- *** 494,500
- void look(void);
- void throw_object(void);
- void bash(void);
- - void py_bash(int, int);
-
- #ifdef MSDOS
- /* ms_misc.c */
-
- --- 494,499 -----
- void look(void);
- void throw_object(void);
- void bash(void);
-
- #ifdef MSDOS
- /* ms_misc.c */
- ***************
- *** 499,504
- #ifdef MSDOS
- /* ms_misc.c */
- char *getlogin(void);
- unsigned int sleep(int );
- void error(char *, ...);
- void warn(char *, ...);
-
- --- 498,506 -----
- #ifdef MSDOS
- /* ms_misc.c */
- char *getlogin(void);
- + #ifdef __TURBOC__
- + void sleep(int);
- + #else
- unsigned int sleep(int );
- #endif
- void error(char *, ...);
- ***************
- *** 500,505
- /* ms_misc.c */
- char *getlogin(void);
- unsigned int sleep(int );
- void error(char *, ...);
- void warn(char *, ...);
- void msdos_init(void);
-
- --- 502,508 -----
- void sleep(int);
- #else
- unsigned int sleep(int );
- + #endif
- void error(char *, ...);
- void warn(char *, ...);
- void msdos_init(void);
- ***************
- *** 952,958
- void look();
- void throw_object();
- void bash();
- - void py_bash();
-
- #ifdef MSDOS
- /* ms_misc.c */
-
- --- 955,960 -----
- void look();
- void throw_object();
- void bash();
-
- #ifdef MSDOS
- /* ms_misc.c */
- ***************
- *** 957,962
- #ifdef MSDOS
- /* ms_misc.c */
- char *getlogin();
- unsigned int sleep();
- void error();
- void warn();
-
- --- 959,967 -----
- #ifdef MSDOS
- /* ms_misc.c */
- char *getlogin();
- + #ifdef __TURBOC__
- + void sleep();
- + #else
- unsigned int sleep();
- #endif
- void error();
- ***************
- *** 958,963
- /* ms_misc.c */
- char *getlogin();
- unsigned int sleep();
- void error();
- void warn();
- void msdos_init();
-
- --- 963,969 -----
- void sleep();
- #else
- unsigned int sleep();
- + #endif
- void error();
- void warn();
- void msdos_init();
- diff -cr oldumoria/source/generate.c umoria/source/generate.c
- *** oldumoria/source/generate.c Fri May 4 19:00:51 1990
- --- umoria/source/generate.c Fri May 25 17:11:17 1990
- ***************
- *** 13,19
-
- #ifdef USG
- #if !defined(ATARIST_MWC)
- ! #ifndef IBMPC_TURBO_C
- #include <memory.h>
- #else
- #include <mem.h>
-
- --- 13,19 -----
-
- #ifdef USG
- #if !defined(ATARIST_MWC)
- ! #ifndef __TURBOC__
- #include <memory.h>
- #else
- #include <mem.h>
- diff -cr oldumoria/source/io.c umoria/source/io.c
- *** oldumoria/source/io.c Fri May 4 18:41:55 1990
- --- umoria/source/io.c Fri May 25 17:11:29 1990
- ***************
- *** 136,141
-
- #ifdef USG
- void exit();
- unsigned sleep();
- #endif
- #ifdef ultrix
-
- --- 136,144 -----
-
- #ifdef USG
- void exit();
- + #ifdef __TURBOC__
- + void sleep();
- + #else
- unsigned sleep();
- #endif
- #endif
- ***************
- *** 138,143
- void exit();
- unsigned sleep();
- #endif
- #ifdef ultrix
- void exit();
- void sleep();
-
- --- 141,147 -----
- #else
- unsigned sleep();
- #endif
- + #endif
- #ifdef ultrix
- void exit();
- void sleep();
- ***************
- *** 535,541
- clear_screen(); /* BOSS key if shell failed */
- put_buffer("M:\\> ", 0, 0);
- do {
- ! key = inkey(key);
- } while (key != '!');
- }
-
-
- --- 539,545 -----
- clear_screen(); /* BOSS key if shell failed */
- put_buffer("M:\\> ", 0, 0);
- do {
- ! key = inkey();
- } while (key != '!');
- }
-
- ***************
- *** 1055,1060
- /* prevent message 'warning: y is unused' */
- x = y;
- #endif
- #endif
-
- if (x > 73)
-
- --- 1059,1067 -----
- /* prevent message 'warning: y is unused' */
- x = y;
- #endif
- + #ifdef LINT_ARGS
- + /* prevent message about y never used for MSDOS systems */
- + res = y;
- #endif
- #endif
-
- ***************
- *** 1056,1061
- x = y;
- #endif
- #endif
-
- if (x > 73)
- #ifdef ATARIST_MWC
-
- --- 1063,1069 -----
- /* prevent message about y never used for MSDOS systems */
- res = y;
- #endif
- + #endif
-
- if (x > 73)
- #ifdef ATARIST_MWC
- ***************
- *** 1230,1235
- erase_line(prt_line, 0);
- #ifndef MSDOS /* PCs are slow enough as is -dgk */
- if (delay > 0) (void) sleep((unsigned)delay);
- #endif
- #ifdef MAC
- enablefilemenu(FALSE);
-
- --- 1238,1246 -----
- erase_line(prt_line, 0);
- #ifndef MSDOS /* PCs are slow enough as is -dgk */
- if (delay > 0) (void) sleep((unsigned)delay);
- + #else
- + /* prevent message about delay unused */
- + dummy = delay;
- #endif
- #ifdef MAC
- enablefilemenu(FALSE);
- diff -cr oldumoria/source/main.c umoria/source/main.c
- *** oldumoria/source/main.c Fri May 4 20:48:51 1990
- --- umoria/source/main.c Fri May 25 17:11:37 1990
- ***************
- *** 121,126
- long _stksize = 18000; /*(SAJ) for MWC */
- #endif
-
- #if defined(LINT_ARGS)
- static void char_inven_init(void);
- static void init_m_level(void);
-
- --- 121,130 -----
- long _stksize = 18000; /*(SAJ) for MWC */
- #endif
-
- + #ifdef __TURBOC__
- + unsigned _stklen = 0x3fff; /* increase stack from 4K to 16K */
- + #endif
- +
- #if defined(LINT_ARGS)
- static void char_inven_init(void);
- static void init_m_level(void);
- diff -cr oldumoria/source/misc2.c umoria/source/misc2.c
- *** oldumoria/source/misc2.c Tue May 8 13:07:13 1990
- --- umoria/source/misc2.c Wed May 16 15:34:45 1990
- ***************
- *** 2308,2313
- /* Saving throws for player character. -RAK- */
- int player_saves()
- {
- if (randint(100) <= (py.misc.save + stat_adj(A_WIS)
- + (class_level_adj[py.misc.pclass][CLA_SAVE]
- * py.misc.lev / 3)))
-
- --- 2308,2316 -----
- /* Saving throws for player character. -RAK- */
- int player_saves()
- {
- + /* MPW C couldn't handle the expression, so split it into two parts */
- + int16 temp = class_level_adj[py.misc.pclass][CLA_SAVE];
- +
- if (randint(100) <= (py.misc.save + stat_adj(A_WIS)
- + (temp * py.misc.lev / 3)))
- return(TRUE);
- ***************
- *** 2309,2316
- int player_saves()
- {
- if (randint(100) <= (py.misc.save + stat_adj(A_WIS)
- ! + (class_level_adj[py.misc.pclass][CLA_SAVE]
- ! * py.misc.lev / 3)))
- return(TRUE);
- else
- return(FALSE);
-
- --- 2312,2318 -----
- int16 temp = class_level_adj[py.misc.pclass][CLA_SAVE];
-
- if (randint(100) <= (py.misc.save + stat_adj(A_WIS)
- ! + (temp * py.misc.lev / 3)))
- return(TRUE);
- else
- return(FALSE);
- diff -cr oldumoria/source/save.c umoria/source/save.c
- *** oldumoria/source/save.c Thu May 10 10:16:18 1990
- --- umoria/source/save.c Mon May 14 19:08:52 1990
- ***************
- *** 70,75
- #endif
-
- #if !defined(ATARIST_MWC)
- long time();
- #else
- char *malloc();
-
- --- 70,78 -----
- #endif
-
- #if !defined(ATARIST_MWC)
- + #ifdef MAC
- + #include <time.h>
- + #else
- long time();
- #endif
- #else
- ***************
- *** 71,76
-
- #if !defined(ATARIST_MWC)
- long time();
- #else
- char *malloc();
- #endif
-
- --- 74,80 -----
- #include <time.h>
- #else
- long time();
- + #endif
- #else
- char *malloc();
- #endif
- ***************
- *** 491,497
- char *fnam;
- {
- vtype temp;
- ! register int i, ok, fd;
- int8u char_tmp;
-
- if (log_index < 0)
-
- --- 495,501 -----
- char *fnam;
- {
- vtype temp;
- ! register int ok, fd;
- int8u char_tmp;
-
- if (log_index < 0)
- ***************
- *** 641,646
- msg_print("Savefile does not exist.");
- return FALSE; /* Don't bother with messages here. File absent. */
- }
- #endif
-
- clear_screen();
-
- --- 645,653 -----
- msg_print("Savefile does not exist.");
- return FALSE; /* Don't bother with messages here. File absent. */
- }
- + #else
- + if (access (savefile, 0) < 0)
- + return FALSE;
- #endif
-
- clear_screen();
- diff -cr oldumoria/source/signals.c umoria/source/signals.c
- *** oldumoria/source/signals.c Fri May 4 18:17:16 1990
- --- umoria/source/signals.c Fri May 25 17:11:52 1990
- ***************
- *** 76,81
-
- #ifdef USG
- void exit();
- unsigned sleep();
- #endif
-
-
- --- 76,84 -----
-
- #ifdef USG
- void exit();
- + #ifdef __TURBOC__
- + void sleep();
- + #else
- unsigned sleep();
- #endif
- #endif
- ***************
- *** 78,83
- void exit();
- unsigned sleep();
- #endif
-
- static int error_sig = -1;
- static int signal_count = 0;
-
- --- 81,87 -----
- #else
- unsigned sleep();
- #endif
- + #endif
-
- static int error_sig = -1;
- static int signal_count = 0;
- ***************
- *** 92,97
-
- smask = sigsetmask(0) | (1 << sig);
- #else
- static int signal_handler(sig)
- int sig;
- {
-
- --- 96,104 -----
-
- smask = sigsetmask(0) | (1 << sig);
- #else
- + #ifdef __TURBOC__
- + static void signal_handler(sig)
- + #else
- static int signal_handler(sig)
- #endif
- int sig;
- ***************
- *** 93,98
- smask = sigsetmask(0) | (1 << sig);
- #else
- static int signal_handler(sig)
- int sig;
- {
-
-
- --- 100,106 -----
- static void signal_handler(sig)
- #else
- static int signal_handler(sig)
- + #endif
- int sig;
- {
-
- diff -cr oldumoria/source/spells.c umoria/source/spells.c
- *** oldumoria/source/spells.c Mon Apr 9 12:11:18 1990
- --- umoria/source/spells.c Tue May 22 15:25:17 1990
- ***************
- *** 437,443
- if (c_ptr->fval <= MAX_CAVE_FLOOR)
- {
- door = TRUE;
- - k = popt();
- if (c_ptr->tptr != 0)
- (void) delete_object(i, j);
- c_ptr->fval = BLOCKED_FLOOR;
-
- --- 437,442 -----
- if (c_ptr->fval <= MAX_CAVE_FLOOR)
- {
- door = TRUE;
- if (c_ptr->tptr != 0)
- (void) delete_object(i, j);
- k = popt();
- ***************
- *** 440,445
- k = popt();
- if (c_ptr->tptr != 0)
- (void) delete_object(i, j);
- c_ptr->fval = BLOCKED_FLOOR;
- c_ptr->tptr = k;
- invcopy(&t_list[k], OBJ_CLOSED_DOOR);
-
- --- 439,445 -----
- door = TRUE;
- if (c_ptr->tptr != 0)
- (void) delete_object(i, j);
- + k = popt();
- c_ptr->fval = BLOCKED_FLOOR;
- c_ptr->tptr = k;
- invcopy(&t_list[k], OBJ_CLOSED_DOOR);
- ***************
- *** 442,448
- (void) delete_object(i, j);
- c_ptr->fval = BLOCKED_FLOOR;
- c_ptr->tptr = k;
- ! invcopy(&t_list[k], OBJ_CLOSED_DOOR);
- lite_spot(i, j);
- }
- }
-
- --- 442,448 -----
- k = popt();
- c_ptr->fval = BLOCKED_FLOOR;
- c_ptr->tptr = k;
- ! invcopy(&t_list[k], OBJ_CLOSED_DOOR);
- lite_spot(i, j);
- }
- }
- diff -cr oldumoria/source/treasure.c umoria/source/treasure.c
- *** oldumoria/source/treasure.c Mon Apr 16 19:07:05 1990
- --- umoria/source/treasure.c Fri May 25 20:43:52 1990
- ***************
- *** 1,4
- ! /* treasur1.c: dungeon object definitions
-
- Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
-
-
- --- 1,4 -----
- ! /* treasure.c: dungeon object definitions
-
- Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
-
- diff -cr oldumoria/source/types.h umoria/source/types.h
- *** oldumoria/source/types.h Fri May 4 18:18:13 1990
- --- umoria/source/types.h Fri May 25 17:12:23 1990
- ***************
- *** 318,324
- unsigned int pl : 1; /* permanent light, used for walls and lighted rooms */
- unsigned int tl : 1; /* temporary light, used for player's lamp light,etc.*/
- #else
- ! #ifndef IBMPC_TURBO_C
- /* this is not legal ANSI C, this is a MSC extension, which will use 1 byte
- for the bitfields whereas MSC uses 2 bytes for the bitfields above */
- /* this is also a MWC extension on the Atari ST */
-
- --- 318,324 -----
- unsigned int pl : 1; /* permanent light, used for walls and lighted rooms */
- unsigned int tl : 1; /* temporary light, used for player's lamp light,etc.*/
- #else
- ! #ifndef __TURBOC__
- /* this is not legal ANSI C, this is a MSC extension, which will use 1 byte
- for the bitfields whereas MSC uses 2 bytes for the bitfields above */
- /* this is also a MWC extension on the Atari ST */
- diff -cr oldumoria/unix/Makefile umoria/unix/Makefile
- *** oldumoria/unix/Makefile Tue May 8 00:06:16 1990
- --- umoria/unix/Makefile Sun May 27 15:59:20 1990
- ***************
- *** 11,17
- generate.c sets.c dungeon.c creature.c death.c eat.c help.c magic.c\
- potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c\
- wizard.c store2.c signals.c moria1.c moria2.c monsters.c\
- ! treasure.c variable.c rnd.c recall.c unix.c undef.c
-
- OBJS = main.o misc1.o misc2.o store1.o files.o io.o create.o desc.o\
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
-
- --- 11,18 -----
- generate.c sets.c dungeon.c creature.c death.c eat.c help.c magic.c\
- potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c\
- wizard.c store2.c signals.c moria1.c moria2.c monsters.c\
- ! treasure.c variable.c rnd.c recall.c unix.c undef.c\
- ! player.c tables.c
-
- OBJS = main.o misc1.o misc2.o store1.o files.o io.o create.o desc.o\
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- ***************
- *** 17,23
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
- wizard.o store2.o signals.o moria1.o moria2.o monsters.o\
- ! treasure.o variable.o rnd.o recall.o unix.o undef.o
-
- LIBFILES = hours news origcmds.hlp owizcmds.hlp roglcmds.hlp rwizcmds.hlp \
- scores version.hlp welcome.hlp
-
- --- 18,25 -----
- generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
- potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
- wizard.o store2.o signals.o moria1.o moria2.o monsters.o\
- ! treasure.o variable.o rnd.o recall.o unix.o undef.o\
- ! player.o tables.o
-
- LIBFILES = hours news origcmds.hlp owizcmds.hlp roglcmds.hlp rwizcmds.hlp \
- scores version.hlp welcome.hlp
- ***************
- *** 66,71
- monsters.o: constant.h types.h config.h
- moria1.o: constant.h types.h externs.h config.h
- moria2.o: constant.h types.h externs.h config.h
- potions.o: constant.h types.h externs.h config.h
- prayer.o: constant.h types.h externs.h config.h
- recall.o: constant.h config.h types.h externs.h
-
- --- 68,74 -----
- monsters.o: constant.h types.h config.h
- moria1.o: constant.h types.h externs.h config.h
- moria2.o: constant.h types.h externs.h config.h
- + player.o: constant.h types.h config.h
- potions.o: constant.h types.h externs.h config.h
- prayer.o: constant.h types.h externs.h config.h
- recall.o: constant.h config.h types.h externs.h
- ***************
- *** 78,83
- staffs.o: constant.h types.h externs.h config.h
- store1.o: constant.h types.h externs.h config.h
- store2.o: constant.h types.h externs.h config.h
- treasure.o: constant.h types.h config.h
- unix.o: constant.h config.h types.h externs.h
- variable.o: constant.h types.h config.h
-
- --- 81,87 -----
- staffs.o: constant.h types.h externs.h config.h
- store1.o: constant.h types.h externs.h config.h
- store2.o: constant.h types.h externs.h config.h
- + tables.o: constant.h types.h config.h
- treasure.o: constant.h types.h config.h
- unix.o: constant.h config.h types.h externs.h
- variable.o: constant.h types.h config.h
- diff -cr oldumoria/util/README umoria/util/README
- *** oldumoria/util/README Fri May 4 17:53:32 1990
- --- umoria/util/README Fri May 25 21:47:04 1990
- ***************
- *** 10,17
- monster.cng: a list of some of the changes to the monster.c file, is this
- still needed?
-
- ! printit.c: some code which would pretty print item/monster descriptions for
- ! umoria 4.87, by Carl Hommel, obsolete
-
- showmon.c: obsolete code from 4.87 for printing the monster dictionary,
- superceded by the monster memories
-
- --- 10,17 -----
- monster.cng: a list of some of the changes to the monster.c file, is this
- still needed?
-
- ! printit.c: some code which will pretty print item/monster descriptions,
- ! written by Carl Hommel
-
- showmon.c: obsolete code from 4.87 for printing the monster dictionary,
- superceded by the monster memories
- ***************
- *** 16,19
- showmon.c: obsolete code from 4.87 for printing the monster dictionary,
- superceded by the monster memories
-
- ! weapons: a program which roughly indicates which weapons are best
-
- --- 16,21 -----
- showmon.c: obsolete code from 4.87 for printing the monster dictionary,
- superceded by the monster memories
-
- ! weapons: a program which roughly indicates which weapons are best, written
- ! by Wayne Schlitt
- !
- diff -cr oldumoria/vms/make.com umoria/vms/make.com
- *** oldumoria/vms/make.com Wed Feb 14 13:05:52 1990
- --- umoria/vms/make.com Sun May 27 15:46:50 1990
- ***************
- *** 17,22
- $ cc moria1.c /obj=moria1.o
- $ cc moria2.c /obj=moria2.o
- $ cc potions.c /obj=potions.o
- $ cc prayer.c /obj=prayer.o
- $ cc save.c /obj=save.o
- $ cc scrolls.c /obj=scrolls.o
-
- --- 17,23 -----
- $ cc moria1.c /obj=moria1.o
- $ cc moria2.c /obj=moria2.o
- $ cc potions.c /obj=potions.o
- + $ cc player.c /obj=player.o
- $ cc prayer.c /obj=prayer.o
- $ cc save.c /obj=save.o
- $ cc scrolls.c /obj=scrolls.o
- ***************
- *** 26,31
- $ cc staffs.c /obj=staffs.o
- $ cc store1.c /obj=store1.o
- $ cc store2.c /obj=store2.o
- $ cc treasure1.c /obj=treasure1.o
- $ cc treasure2.c /obj=treasure2.o
- $ cc variables.c /obj=variables.o
-
- --- 27,33 -----
- $ cc staffs.c /obj=staffs.o
- $ cc store1.c /obj=store1.o
- $ cc store2.c /obj=store2.o
- + $ cc tables.c /obj=tables.o
- $ cc treasure1.c /obj=treasure1.o
- $ cc treasure2.c /obj=treasure2.o
- $ cc variables.c /obj=variables.o
- diff -cr oldumoria/vms/moria.opt umoria/vms/moria.opt
- *** oldumoria/vms/moria.opt Sat Feb 10 22:55:27 1990
- --- umoria/vms/moria.opt Sun May 27 15:47:31 1990
- ***************
- *** 2,8
- generate.o,sets.o,dungeon.o,creature.o,death.o,eat.o,help.o,magic.o, -
- potions.o,prayer.o,save.o,staffs.o,wands.o,scrolls.o,spells.o, -
- wizard.o,store2.o,signals.o,moria1.o,moria2.o,monsters.o, -
- ! treasure1.o,treasure2.o,variables.o, -
- getch.o,cbreak.o,uexit.o,sys$library:vaxcrtl/share
- ! ^ char input
- ! ^ small stubs for cbreak(), nocbreak()
-
- --- 2,8 -----
- generate.o,sets.o,dungeon.o,creature.o,death.o,eat.o,help.o,magic.o, -
- potions.o,prayer.o,save.o,staffs.o,wands.o,scrolls.o,spells.o, -
- wizard.o,store2.o,signals.o,moria1.o,moria2.o,monsters.o, -
- ! treasure1.o,treasure2.o,variables.o,player.o,tables.o -
- getch.o,cbreak.o,uexit.o,sys$library:vaxcrtl/share
- ! ^ char input
- ! ^ small stubs for cbreak(), nocbreak()
-