home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume16 / nethck31 / patch2e < prev    next >
Encoding:
Internet Message Format  |  1993-06-15  |  61.3 KB

  1. Path: uunet!news.tek.com!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v17i080:  nethack31 - display oriented dungeons & dragons (Ver. 3.1), Patch2e/33
  5. Date: 11 Jun 1993 00:06:58 GMT
  6. Organization: Tektronix, Inc, Redmond, OR, USA
  7. Lines: 1900
  8. Approved: billr@saab.CNA.TEK.COM
  9. Message-ID: <1v8ib2$iqq@ying.cna.tek.com>
  10. NNTP-Posting-Host: saab.cna.tek.com
  11. Xref: uunet comp.sources.games:1768
  12.  
  13. Submitted-by: izchak@linc.cis.upenn.edu (Izchak Miller)
  14. Posting-number: Volume 17, Issue 80
  15. Archive-name: nethack31/Patch2e
  16. Patch-To: nethack31: Volume 16, Issue 1-116
  17. Environment: Amiga, Atari, Mac, MS-DOS, Windows-NT, OS2, Unix, VMS, X11
  18.  
  19.  
  20.  
  21. #! /bin/sh
  22. # This is a shell archive.  Remove anything before this line, then unpack
  23. # it by saving it into a file and typing "sh file".  To overwrite existing
  24. # files, type "sh file -c".  You can also feed this as standard input via
  25. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  26. # will see the following message at the end:
  27. #        "End of archive 5 (of 33)."
  28. # Contents:  patches02n sys/amiga/winkey.c
  29. # Wrapped by billr@saab on Thu Jun 10 16:55:00 1993
  30. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  31. if test -f 'patches02n' -a "${1}" != "-c" ; then 
  32.   echo shar: Renaming existing file \"'patches02n'\" to \"'patches02n.orig'\"
  33.   mv -f 'patches02n' 'patches02n.orig'
  34. fi
  35. echo shar: Extracting \"'patches02n'\" \(56326 characters\)
  36. sed "s/^X//" >'patches02n' <<'END_OF_FILE'
  37. X*** /tmp/da10223    Tue Jun  1 16:01:42 1993
  38. X--- include/align.h    Wed May 26 14:07:40 1993
  39. X***************
  40. X*** 12,18 ****
  41. X      int        record;
  42. X  } align;
  43. X  
  44. X! #define ALIGNLIM    (5L + (moves/200L))    /* bounds for "record" */
  45. X  
  46. X  #define A_NONE          (-128)    /* the value range of type */
  47. X  
  48. X--- 12,19 ----
  49. X      int        record;
  50. X  } align;
  51. X  
  52. X! /* bounds for "record" -- respect initial alignments of 10 */
  53. X! #define ALIGNLIM    (10L + (moves/200L))
  54. X  
  55. X  #define A_NONE          (-128)    /* the value range of type */
  56. X  
  57. X***************
  58. X*** 31,37 ****
  59. X  #define AM_MASK         7
  60. X  
  61. X  #define Amask2align(x)    ((aligntyp) ((!(x)) ? A_NONE \
  62. X!              : ((x) == AM_LAWFUL) ? A_LAWFUL : (x) - 2))
  63. X  #define Align2amask(x)    (((x) == A_NONE) ? AM_NONE \
  64. X               : ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2)
  65. X  
  66. X--- 32,38 ----
  67. X  #define AM_MASK         7
  68. X  
  69. X  #define Amask2align(x)    ((aligntyp) ((!(x)) ? A_NONE \
  70. X!              : ((x) == AM_LAWFUL) ? A_LAWFUL : ((int)x) - 2))
  71. X  #define Align2amask(x)    (((x) == A_NONE) ? AM_NONE \
  72. X               : ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2)
  73. X  
  74. X*** /tmp/da10231    Tue Jun  1 16:01:44 1993
  75. X--- include/amiconf.h    Thu May 20 15:58:06 1993
  76. X***************
  77. X*** 39,45 ****
  78. X  
  79. X  /* Compile in New Intuition look for 2.0 */
  80. X  #ifdef    IDCMP_CLOSEWINDOW
  81. X! # define    INTUI_NEW_LOOK    1
  82. X  #endif
  83. X  
  84. X  #define MFLOPPY         /* You'll probably want this; provides assistance
  85. X--- 39,47 ----
  86. X  
  87. X  /* Compile in New Intuition look for 2.0 */
  88. X  #ifdef    IDCMP_CLOSEWINDOW
  89. X! # ifndef INTUI_NEW_LOOK
  90. X! #  define    INTUI_NEW_LOOK    1
  91. X! # endif
  92. X  #endif
  93. X  
  94. X  #define MFLOPPY         /* You'll probably want this; provides assistance
  95. X***************
  96. X*** 74,80 ****
  97. X  extern char *FDECL(gets, (char *));
  98. X  #endif
  99. X  
  100. X! #define msmsg        raw_printf
  101. X  
  102. X  /*
  103. X   * If AZTEC_C  we can't use the long cpath in vision.c....
  104. X--- 76,83 ----
  105. X  extern char *FDECL(gets, (char *));
  106. X  #endif
  107. X  
  108. X! /*#define msmsg        raw_printf*/
  109. X! #define msmsg        printf
  110. X  
  111. X  /*
  112. X   * If AZTEC_C  we can't use the long cpath in vision.c....
  113. X***************
  114. X*** 93,105 ****
  115. X  #define MAIL            /* Get mail at unexpected occasions */
  116. X  #define DEFAULT_ICON "NetHack:default.icon"    /* private icon */
  117. X  #define AMIFLUSH        /* toss typeahead (select flush in .cnf) */
  118. X- /*#define AMIGA_WINDOWED_CORNLINE /* Use windows for pager, inventory, etc */
  119. X  
  120. X  /* new window system options */
  121. X! #define AMIGA_INTUITION        /* high power graphics interface (amii) */
  122. X  
  123. X  #ifdef    TEXTCOLOR
  124. X! # define    DEPTH    3
  125. X  #else
  126. X  # define    DEPTH    2
  127. X  #endif
  128. X--- 96,116 ----
  129. X  #define MAIL            /* Get mail at unexpected occasions */
  130. X  #define DEFAULT_ICON "NetHack:default.icon"    /* private icon */
  131. X  #define AMIFLUSH        /* toss typeahead (select flush in .cnf) */
  132. X  
  133. X  /* new window system options */
  134. X!             /* WRONG - AMIGA_INTUITION should go away */
  135. X! #ifdef AMII_GRAPHICS
  136. X! # define AMIGA_INTUITION        /* high power graphics interface (amii) */
  137. X! #endif
  138. X  
  139. X+ #define CHANGE_COLOR    1
  140. X+ 
  141. X  #ifdef    TEXTCOLOR
  142. X! # ifdef    VIEWWINDOW
  143. X! #  define    DEPTH    4
  144. X! # else
  145. X! #  define    DEPTH    3
  146. X! # endif
  147. X  #else
  148. X  # define    DEPTH    2
  149. X  #endif
  150. X***************
  151. X*** 112,116 ****
  152. X--- 123,133 ----
  153. X  #define    AMII_SOFT_VOLUME    50
  154. X  #define    AMII_OKAY_VOLUME    60
  155. X  #define    AMII_LOUDER_VOLUME    80
  156. X+ 
  157. X+ #ifdef TTY_GRAPHICS
  158. X+ # define ANSI_DEFAULT
  159. X+ #endif
  160. X+ 
  161. X+ extern int amibbs;    /* BBS mode? */
  162. X  
  163. X  #endif /* AMICONF_H */
  164. X*** /tmp/da10247    Tue Jun  1 16:01:47 1993
  165. X--- include/artilist.h    Fri May 28 11:40:18 1993
  166. X***************
  167. X*** 1,4 ****
  168. X! /*    SCCS Id: @(#)artilist.h    3.1    92/12/13    */
  169. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  170. X  /* NetHack may be freely redistributed.  See license for details. */
  171. X  
  172. X--- 1,4 ----
  173. X! /*    SCCS Id: @(#)artilist.h    3.1    93/05/25    */
  174. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  175. X  /* NetHack may be freely redistributed.  See license for details. */
  176. X  
  177. X***************
  178. X*** 26,32 ****
  179. X  #define     ELEC(a,b)    {0,AD_ELEC,a,b}        /* electrical shock */
  180. X  #define     STUN(a,b)    {0,AD_STUN,a,b}        /* magical attack */
  181. X  
  182. X! STATIC_OVL NEARDATA const struct artifact artilist[] = {
  183. X  #endif    /* MAKEDEFS_C */
  184. X  
  185. X  /*  dummy element #0, so that all interesting indices are non-zero */
  186. X--- 26,32 ----
  187. X  #define     ELEC(a,b)    {0,AD_ELEC,a,b}        /* electrical shock */
  188. X  #define     STUN(a,b)    {0,AD_STUN,a,b}        /* magical attack */
  189. X  
  190. X! STATIC_OVL NEARDATA struct artifact artilist[] = {
  191. X  #endif    /* MAKEDEFS_C */
  192. X  
  193. X  /*  dummy element #0, so that all interesting indices are non-zero */
  194. X*** /tmp/da10271    Tue Jun  1 16:01:52 1993
  195. X--- include/config.h    Tue Jun  1 11:45:49 1993
  196. X***************
  197. X*** 63,71 ****
  198. X  #endif
  199. X  #ifdef __SASC_60
  200. X  # define NEARDATA __near /* put some data close */
  201. X- # define NO_SCAN_BRACK    /* scanf doesn't handle [] (this define available
  202. X-              * for any system with this problem) */
  203. X-             /* is this still true as of 6.2? (keni) */
  204. X  #else
  205. X  # define NEARDATA
  206. X  #endif
  207. X--- 63,68 ----
  208. X***************
  209. X*** 203,219 ****
  210. X  /* MAC also means MAC windows */
  211. X  #ifdef MAC
  212. X  # ifndef    AUX
  213. X! #  undef TTY_GRAPHICS
  214. X  #  undef X11_GRAPHICS
  215. X  #  define DEFAULT_WINDOW_SYS "mac"
  216. X  # endif
  217. X  #endif
  218. X  
  219. X! /* no options yet: Amiga also means Intuition windows */
  220. X  #ifdef AMIGA
  221. X! # undef TTY_GRAPHICS
  222. X! # define AMII_GRAPHICS
  223. X! # define DEFAULT_WINDOW_SYS "amii"
  224. X  #endif
  225. X  
  226. X  #ifndef DEFAULT_WINDOW_SYS
  227. X--- 200,223 ----
  228. X  /* MAC also means MAC windows */
  229. X  #ifdef MAC
  230. X  # ifndef    AUX
  231. X! /* #  undef TTY_GRAPHICS /* Macs now handle TTY graphics */
  232. X  #  undef X11_GRAPHICS
  233. X  #  define DEFAULT_WINDOW_SYS "mac"
  234. X  # endif
  235. X  #endif
  236. X  
  237. X! /* Amiga supports AMII_GRAPHICS and/or TTY_GRAPHICS */
  238. X  #ifdef AMIGA
  239. X! # define AMII_GRAPHICS            /* (optional) */
  240. X! # ifdef SHAREDLIB
  241. X! #  define DEFAULT_WINDOW_SYS "amii"    /* "amii" or "tty" */
  242. X! # else
  243. X! #  ifdef VIEWWINDOW
  244. X! #   define DEFAULT_WINDOW_SYS "amiv"    /* "amii" or "tty" */
  245. X! #  else
  246. X! #   define DEFAULT_WINDOW_SYS "amii"    /* "amii" or "tty" */
  247. X! #  endif
  248. X! # endif
  249. X  #endif
  250. X  
  251. X  #ifndef DEFAULT_WINDOW_SYS
  252. X***************
  253. X*** 426,432 ****
  254. X  /* I/O */
  255. X  #define REDO        /* support for redoing last command - DGK */
  256. X  #define COM_COMPL    /* Command line completion by John S. Bien */
  257. X! #ifndef AMIGA
  258. X  # define CLIPPING    /* allow smaller screens -- ERS */
  259. X  #endif
  260. X  
  261. X--- 430,436 ----
  262. X  /* I/O */
  263. X  #define REDO        /* support for redoing last command - DGK */
  264. X  #define COM_COMPL    /* Command line completion by John S. Bien */
  265. X! #if !defined(AMIGA) && !defined(MAC)
  266. X  # define CLIPPING    /* allow smaller screens -- ERS */
  267. X  #endif
  268. X  
  269. X*** /tmp/da10287    Tue Jun  1 16:01:57 1993
  270. X--- include/decl.h    Tue Jun  1 14:28:36 1993
  271. X***************
  272. X*** 1,4 ****
  273. X! /*    SCCS Id: @(#)decl.h    3.1    93/02/09    */
  274. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  275. X  /* NetHack may be freely redistributed.  See license for details. */
  276. X  
  277. X--- 1,4 ----
  278. X! /*    SCCS Id: @(#)decl.h    3.1    93/03/18    */
  279. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  280. X  /* NetHack may be freely redistributed.  See license for details. */
  281. X  
  282. X*** /tmp/da10367    Tue Jun  1 16:02:15 1993
  283. X--- include/extern.h    Tue Jun  1 12:12:40 1993
  284. X***************
  285. X*** 1,4 ****
  286. X! /*    SCCS Id: @(#)extern.h    3.1    93/02/16    */
  287. X  /* Copyright (c) Steve Creps, 1988.                  */
  288. X  /* NetHack may be freely redistributed.  See license for details. */
  289. X  
  290. X--- 1,4 ----
  291. X! /*    SCCS Id: @(#)extern.h    3.1    93/05/31    */
  292. X  /* Copyright (c) Steve Creps, 1988.                  */
  293. X  /* NetHack may be freely redistributed.  See license for details. */
  294. X  
  295. X***************
  296. X*** 92,97 ****
  297. X--- 92,98 ----
  298. X  E void NDECL(restore_attrib);
  299. X  E void FDECL(exercise, (int,BOOLEAN_P));
  300. X  E void NDECL(exerchk);
  301. X+ E void NDECL(reset_attribute_clock);
  302. X  E void FDECL(init_attr, (int));
  303. X  E void NDECL(redist_attr);
  304. X  E void FDECL(adjabil, (int,int));
  305. X***************
  306. X*** 105,111 ****
  307. X  E void NDECL(ballfall);
  308. X  E void NDECL(placebc);
  309. X  E void NDECL(unplacebc);
  310. X- E int NDECL(bc_order);
  311. X  E void FDECL(set_bc, (int));
  312. X  E void FDECL(move_bc, (int,int,XCHAR_P,XCHAR_P,XCHAR_P,XCHAR_P));
  313. X  E boolean FDECL(drag_ball, (XCHAR_P,XCHAR_P,
  314. X--- 106,111 ----
  315. X***************
  316. X*** 222,227 ****
  317. X--- 222,228 ----
  318. X  E void FDECL(map_trap, (struct trap *,int));
  319. X  E void FDECL(map_object, (struct obj *,int));
  320. X  E void FDECL(unmap_object, (int,int));
  321. X+ E void FDECL(map_location, (int,int,int));
  322. X  E void FDECL(feel_location, (XCHAR_P,XCHAR_P));
  323. X  E void FDECL(newsym, (XCHAR_P,XCHAR_P));
  324. X  E void FDECL(shieldeff, (XCHAR_P,XCHAR_P));
  325. X***************
  326. X*** 486,499 ****
  327. X  /* ### engrave.c ### */
  328. X  
  329. X  E const char *NDECL(random_engraving);
  330. X  #ifdef ELBERETH
  331. X  E int FDECL(sengr_at, (const char *,XCHAR_P,XCHAR_P));
  332. X  #endif
  333. X- E struct engr *FDECL(engr_at, (XCHAR_P,XCHAR_P));
  334. X  E void FDECL(u_wipe_engr, (int));
  335. X  E void FDECL(wipe_engr_at, (XCHAR_P,XCHAR_P,XCHAR_P));
  336. X  E void FDECL(read_engr_at, (int,int));
  337. X  E void FDECL(make_engr_at, (int,int,const char *,long,XCHAR_P));
  338. X  E int NDECL(freehand);
  339. X  E int NDECL(doengrave);
  340. X  E void FDECL(save_engravings, (int,int));
  341. X--- 487,502 ----
  342. X  /* ### engrave.c ### */
  343. X  
  344. X  E const char *NDECL(random_engraving);
  345. X+ E const char *FDECL(surface, (int,int));
  346. X+ E struct engr *FDECL(engr_at, (XCHAR_P,XCHAR_P));
  347. X  #ifdef ELBERETH
  348. X  E int FDECL(sengr_at, (const char *,XCHAR_P,XCHAR_P));
  349. X  #endif
  350. X  E void FDECL(u_wipe_engr, (int));
  351. X  E void FDECL(wipe_engr_at, (XCHAR_P,XCHAR_P,XCHAR_P));
  352. X  E void FDECL(read_engr_at, (int,int));
  353. X  E void FDECL(make_engr_at, (int,int,const char *,long,XCHAR_P));
  354. X+ E void FDECL(del_engr_at, (int,int));
  355. X  E int NDECL(freehand);
  356. X  E int NDECL(doengrave);
  357. X  E void FDECL(save_engravings, (int,int));
  358. X***************
  359. X*** 641,646 ****
  360. X--- 644,652 ----
  361. X  E void FDECL(useup, (struct obj *));
  362. X  E void FDECL(freeinv, (struct obj *));
  363. X  E void FDECL(delallobj, (int,int));
  364. X+ E void FDECL(bury_objs, (int,int));
  365. X+ E void FDECL(delburiedobj, (struct obj *));
  366. X+ E void FDECL(unearth_objs, (int,int));
  367. X  E void FDECL(delobj, (struct obj *));
  368. X  E void FDECL(freeobj, (struct obj *));
  369. X  E struct obj *FDECL(sobj_at, (int,int,int));
  370. X***************
  371. X*** 922,928 ****
  372. X  E void FDECL(mondied, (struct monst *));
  373. X  E void FDECL(mongone, (struct monst *));
  374. X  E void FDECL(monstone, (struct monst *));
  375. X! E void FDECL(monkilled, (struct monst *,const char *,UCHAR_P));
  376. X  E void FDECL(unstuck, (struct monst *));
  377. X  E void FDECL(killed, (struct monst *));
  378. X  E void FDECL(xkilled, (struct monst *,int));
  379. X--- 928,934 ----
  380. X  E void FDECL(mondied, (struct monst *));
  381. X  E void FDECL(mongone, (struct monst *));
  382. X  E void FDECL(monstone, (struct monst *));
  383. X! E void FDECL(monkilled, (struct monst *,const char *,int));
  384. X  E void FDECL(unstuck, (struct monst *));
  385. X  E void FDECL(killed, (struct monst *));
  386. X  E void FDECL(xkilled, (struct monst *,int));
  387. X***************
  388. X*** 951,957 ****
  389. X  E boolean FDECL(ranged_attk, (struct permonst *));
  390. X  E boolean FDECL(hates_silver, (struct permonst *));
  391. X  E boolean FDECL(can_track, (struct permonst *));
  392. X! #ifdef POLYSELF
  393. X  E boolean FDECL(breakarm, (struct permonst *));
  394. X  E boolean FDECL(sliparm, (struct permonst *));
  395. X  #endif
  396. X--- 957,963 ----
  397. X  E boolean FDECL(ranged_attk, (struct permonst *));
  398. X  E boolean FDECL(hates_silver, (struct permonst *));
  399. X  E boolean FDECL(can_track, (struct permonst *));
  400. X! #if defined(POLYSELF) || defined(MUSE)
  401. X  E boolean FDECL(breakarm, (struct permonst *));
  402. X  E boolean FDECL(sliparm, (struct permonst *));
  403. X  #endif
  404. X***************
  405. X*** 1071,1076 ****
  406. X--- 1077,1083 ----
  407. X  E int FDECL(use_misc, (struct monst *));
  408. X  E int FDECL(rnd_misc_item, (struct monst *));
  409. X  E boolean FDECL(searches_for_item, (struct monst *,struct obj *));
  410. X+ E boolean FDECL(mon_reflects, (struct monst *,const char *));
  411. X  #endif
  412. X  
  413. X  /* ### music.c ### */
  414. X***************
  415. X*** 1166,1172 ****
  416. X--- 1173,1181 ----
  417. X  # endif
  418. X  E void FDECL(append_slash, (char *));
  419. X  E void FDECL(getreturn, (const char *));
  420. X+ # ifndef AMIGA
  421. X  E void VDECL(msmsg, (const char *,...));
  422. X+ # endif
  423. X  E FILE *FDECL(fopenp, (const char *,const char *));
  424. X  E void FDECL(msexit, (int));
  425. X  #endif /* MICRO */
  426. X***************
  427. X*** 1340,1346 ****
  428. X  E void FDECL(punish, (struct obj *));
  429. X  E void NDECL(unpunish);
  430. X  E boolean FDECL(cant_create, (int *));
  431. X! #if defined(WIZARD) || defined(EXPLORE_MODE)
  432. X  E boolean NDECL(create_particular);
  433. X  #endif
  434. X  
  435. X--- 1349,1355 ----
  436. X  E void FDECL(punish, (struct obj *));
  437. X  E void NDECL(unpunish);
  438. X  E boolean FDECL(cant_create, (int *));
  439. X! #ifdef WIZARD
  440. X  E boolean NDECL(create_particular);
  441. X  #endif
  442. X  
  443. X***************
  444. X*** 1367,1373 ****
  445. X  
  446. X  /* ### rip.c ### */
  447. X  
  448. X! E void FDECL(outrip, (int,winid));
  449. X  
  450. X  /* ### rnd.c ### */
  451. X  
  452. X--- 1376,1382 ----
  453. X  
  454. X  /* ### rip.c ### */
  455. X  
  456. X! E void FDECL(genl_outrip, (winid,int));
  457. X  
  458. X  /* ### rnd.c ### */
  459. X  
  460. X***************
  461. X*** 1433,1438 ****
  462. X--- 1442,1448 ----
  463. X  E boolean FDECL(paybill, (BOOLEAN_P));
  464. X  E void FDECL(u_left_shop, (char *,BOOLEAN_P));
  465. X  E void FDECL(u_entered_shop, (char *));
  466. X+ E boolean FDECL(same_price, (struct obj *,struct obj *));
  467. X  E void FDECL(pay_for_damage, (const char *));
  468. X  E long FDECL(unpaid_cost, (struct obj *));
  469. X  E long FDECL(contained_cost, (struct obj *,struct monst *,long,BOOLEAN_P));
  470. X***************
  471. X*** 1455,1460 ****
  472. X--- 1465,1473 ----
  473. X  E boolean FDECL(costly_spot, (XCHAR_P,XCHAR_P));
  474. X  E struct obj *FDECL(shop_object, (XCHAR_P,XCHAR_P));
  475. X  E void FDECL(price_quote, (struct obj *));
  476. X+ #ifdef SOUNDS
  477. X+ E void FDECL(shk_chat, (struct monst *));
  478. X+ #endif
  479. X  E void FDECL(check_unpaid, (struct obj *));
  480. X  E void FDECL(costly_gold, (XCHAR_P,XCHAR_P,long));
  481. X  E boolean FDECL(block_door, (XCHAR_P,XCHAR_P));
  482. X***************
  483. X*** 1480,1485 ****
  484. X--- 1493,1499 ----
  485. X  E void FDECL(growl, (struct monst *));
  486. X  E void FDECL(yelp, (struct monst *));
  487. X  E void FDECL(whimper, (struct monst *));
  488. X+ E void FDECL(beg, (struct monst *));
  489. X  #endif
  490. X  E int NDECL(dotalk);
  491. X  
  492. X***************
  493. X*** 1554,1559 ****
  494. X--- 1568,1574 ----
  495. X  E void NDECL(tele);
  496. X  E void FDECL(teleds, (int,int));
  497. X  E int NDECL(dotele);
  498. X+ E boolean FDECL(tele_restrict, (struct monst *));
  499. X  E void NDECL(level_tele);
  500. X  E void FDECL(water_damage, (struct obj *,BOOLEAN_P,BOOLEAN_P));
  501. X  E boolean NDECL(drown);
  502. X***************
  503. X*** 1563,1569 ****
  504. X  E boolean FDECL(chest_trap, (struct obj *,int,BOOLEAN_P));
  505. X  E void FDECL(deltrap, (struct trap *));
  506. X  E struct trap *FDECL(t_at, (int,int));
  507. X! E void FDECL(b_trapped, (const char *));
  508. X  E boolean NDECL(unconscious);
  509. X  E boolean NDECL(lava_effects);
  510. X  
  511. X--- 1578,1584 ----
  512. X  E boolean FDECL(chest_trap, (struct obj *,int,BOOLEAN_P));
  513. X  E void FDECL(deltrap, (struct trap *));
  514. X  E struct trap *FDECL(t_at, (int,int));
  515. X! E void FDECL(b_trapped, (const char *,int));
  516. X  E boolean NDECL(unconscious);
  517. X  E boolean NDECL(lava_effects);
  518. X  
  519. X***************
  520. X*** 1679,1685 ****
  521. X  
  522. X  E int FDECL(main, (int, char **));
  523. X  # ifdef CHDIR
  524. X! E void FDECL(chdirx, (char *,BOOLEAN_P));
  525. X  # endif /* CHDIR */
  526. X  
  527. X  /* ### vmsmisc.c ### */
  528. X--- 1694,1700 ----
  529. X  
  530. X  E int FDECL(main, (int, char **));
  531. X  # ifdef CHDIR
  532. X! E void FDECL(chdirx, (const char *,BOOLEAN_P));
  533. X  # endif /* CHDIR */
  534. X  
  535. X  /* ### vmsmisc.c ### */
  536. X***************
  537. X*** 1734,1740 ****
  538. X  #ifdef MUSE
  539. X  E void FDECL(possibly_unwield, (struct monst *));
  540. X  E int FDECL(mon_wield_item, (struct monst *));
  541. X- E void FDECL(sort_mwep, (struct monst *));
  542. X  #endif
  543. X  E int NDECL(abon);
  544. X  E int NDECL(dbon);
  545. X--- 1749,1754 ----
  546. X***************
  547. X*** 1808,1817 ****
  548. X  
  549. X  /* ### zap.c ### */
  550. X  
  551. X  #if defined(OVERLAY) || defined(MUSE)
  552. X  E int FDECL(bhito, (struct obj *,struct obj *));
  553. X  #endif
  554. X- E struct monst *FDECL(revive, (struct obj *,BOOLEAN_P));
  555. X  E int FDECL(zappable, (struct obj *));
  556. X  E void FDECL(zapnodir, (struct obj *));
  557. X  E int NDECL(dozap);
  558. X--- 1822,1832 ----
  559. X  
  560. X  /* ### zap.c ### */
  561. X  
  562. X+ E struct monst *FDECL(revive, (struct obj *,BOOLEAN_P));
  563. X+ E boolean FDECL(obj_resists, (struct obj *,int,int));
  564. X  #if defined(OVERLAY) || defined(MUSE)
  565. X  E int FDECL(bhito, (struct obj *,struct obj *));
  566. X  #endif
  567. X  E int FDECL(zappable, (struct obj *));
  568. X  E void FDECL(zapnodir, (struct obj *));
  569. X  E int NDECL(dozap);
  570. X***************
  571. X*** 1826,1831 ****
  572. X--- 1841,1847 ----
  573. X                   int (*)(OBJ_P,OBJ_P),struct obj *));
  574. X  E struct monst *FDECL(boomhit, (int,int));
  575. X  E void FDECL(buzz, (int,int,XCHAR_P,XCHAR_P,int,int));
  576. X+ E void FDECL(melt_ice, (XCHAR_P,XCHAR_P));
  577. X  E int FDECL(zap_over_floor, (XCHAR_P,XCHAR_P,int,boolean *));
  578. X  E void FDECL(rloco, (struct obj *));
  579. X  E void FDECL(fracture_rock, (struct obj *));
  580. X*** /tmp/da10375    Tue Jun  1 16:02:19 1993
  581. X--- include/flag.h    Mon Apr 19 16:25:31 1993
  582. X***************
  583. X*** 1,4 ****
  584. X! /*    SCCS Id: @(#)flag.h    3.1    90/22/02    */
  585. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  586. X  /* NetHack may be freely redistributed.  See license for details. */
  587. X  
  588. X--- 1,4 ----
  589. X! /*    SCCS Id: @(#)flag.h    3.1    93/03/18    */
  590. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  591. X  /* NetHack may be freely redistributed.  See license for details. */
  592. X  
  593. X***************
  594. X*** 9,14 ****
  595. X--- 9,17 ----
  596. X  #ifdef AMIFLUSH
  597. X      boolean  amiflush;    /* kill typeahead */
  598. X  #endif
  599. X+ #ifdef    MFLOPPY
  600. X+     boolean  asksavedisk;
  601. X+ #endif
  602. X      boolean  beginner;
  603. X  #ifdef MICRO
  604. X      boolean  BIOS;        /* use IBM or ST BIOS calls when appropriate */
  605. X***************
  606. X*** 21,27 ****
  607. X  #define wizard     flags.debug
  608. X      boolean  DECgraphics;    /* use DEC VT-xxx extended character set */
  609. X      boolean  echo;        /* 1 to echo characters */
  610. X-     boolean  end_disclose;    /* identify inv and props upon exit */
  611. X      boolean  end_own;    /* list all own scores */
  612. X      boolean  explore;    /* in exploration mode */
  613. X  #define discover flags.explore
  614. X--- 24,29 ----
  615. X***************
  616. X*** 85,90 ****
  617. X--- 87,95 ----
  618. X                  /* reset from 2 to 1, but never to 0 */
  619. X      unsigned run;        /* 0: h (etc), 1: H (etc), 2: fh (etc) */
  620. X                  /* 3: FH, 4: ff+, 5: ff-, 6: FF+, 7: FF- */
  621. X+     char     inv_order[MAXOCLASSES];
  622. X+     char     pickup_types[MAXOCLASSES];
  623. X+     char     end_disclose[5];    /* disclose various info upon exit */
  624. X  #ifdef MAC_GRAPHICS_ENV
  625. X      boolean  large_font;    /* draw in larger fonts (say, 12pt instead
  626. X                     of 9pt) */
  627. X*** /tmp/da10391    Tue Jun  1 16:02:22 1993
  628. X--- include/global.h    Tue Jun  1 11:45:49 1993
  629. X***************
  630. X*** 9,15 ****
  631. X  
  632. X  
  633. X  /*#define BETA        /* if a beta-test copy  [MRS] */
  634. X- #define VERSION "3.1"    /* version number. */
  635. X  
  636. X  /*
  637. X   * Files expected to exist in the playground directory.
  638. X--- 9,14 ----
  639. X***************
  640. X*** 183,189 ****
  641. X  #  define PORT_ID    "Mac"
  642. X  # endif
  643. X  # ifdef MSDOS
  644. X! #  define PORT_ID    "PC"
  645. X  # endif
  646. X  # ifdef OS2
  647. X  #  define PORT_ID    "OS/2"
  648. X--- 182,192 ----
  649. X  #  define PORT_ID    "Mac"
  650. X  # endif
  651. X  # ifdef MSDOS
  652. X! #  ifdef PC9801
  653. X! #   define PORT_ID    "PC-9801"
  654. X! #  else
  655. X! #   define PORT_ID    "PC"
  656. X! #  endif
  657. X  # endif
  658. X  # ifdef OS2
  659. X  #  define PORT_ID    "OS/2"
  660. X***************
  661. X*** 200,205 ****
  662. X--- 203,212 ----
  663. X  # ifdef WIN32CON
  664. X  #  define PORT_ID    "NT-Console"
  665. X  # endif
  666. X+ #endif
  667. X+ 
  668. X+ #if defined(MICRO) && !defined(AMIGA) && !defined(TOS) && !defined(OS2_HPFS)
  669. X+ #define SHORT_FILENAMES        /* filenames are 8.3 */
  670. X  #endif
  671. X  
  672. X  /*
  673. X*** /tmp/da10399    Tue Jun  1 16:02:24 1993
  674. X--- include/hack.h    Tue Jun  1 14:28:37 1993
  675. X***************
  676. X*** 9,14 ****
  677. X--- 9,21 ----
  678. X  #include "config.h"
  679. X  #endif
  680. X  
  681. X+ /* Some people comment out OVERLAY when uncommenting MOVERLAY */
  682. X+ #if defined(MOVERLAY)
  683. X+ # ifndef OVERLAY
  684. X+ #  define OVERLAY
  685. X+ # endif
  686. X+ #endif
  687. X+ 
  688. X  /*    For debugging beta code.    */
  689. X  #ifdef BETA
  690. X  #define Dpline    pline
  691. X*** /tmp/da10415    Tue Jun  1 16:02:28 1993
  692. X--- include/macconf.h    Fri May  7 15:50:34 1993
  693. X***************
  694. X*** 17,23 ****
  695. X--- 17,27 ----
  696. X  #  define RANDOM
  697. X  #  define NO_SIGNAL    /* You wouldn't believe our signals ... */
  698. X  #  define FILENAME 256
  699. X+ #  define NO_TERMS /* For tty port */
  700. X  
  701. X+ #  define TEXTCOLOR /* For Mac TTY interface */
  702. X+ #  define CHANGE_COLOR
  703. X+ 
  704. X  #  include "system.h"
  705. X  
  706. X  typedef long off_t ;
  707. X***************
  708. X*** 39,49 ****
  709. X  /*
  710. X   * Turn off the Macsbug calls for the production version.
  711. X   */
  712. X! #undef Debugger
  713. X! #undef DebugStr
  714. X! #define Debugger()
  715. X! #define DebugStr(aStr)
  716. X  
  717. X  /*
  718. X   * We could use the PSN under sys 7 here ...
  719. X   */
  720. X--- 43,122 ----
  721. X  /*
  722. X   * Turn off the Macsbug calls for the production version.
  723. X   */
  724. X! #if 0
  725. X! #  undef Debugger
  726. X! #  undef DebugStr
  727. X! #  define Debugger()
  728. X! #  define DebugStr(aStr)
  729. X! #endif
  730. X  
  731. X+ /* askname dialog defines (shared between macmain.c and macmenu.c) */
  732. X+ enum
  733. X+ {
  734. X+     dlog_start = 6000,
  735. X+     dlogAskName = dlog_start,
  736. X+     dlog_limit
  737. X+ };
  738. X+ 
  739. X+ /* askname dialog item list */
  740. X+ enum
  741. X+ {
  742. X+     bttnANPlay = 1,
  743. X+     bttnANQuit,
  744. X+     uitmANOutlineDefault,
  745. X+     uitmANRole,
  746. X+     uitmANSex,
  747. X+     uitmANMode,
  748. X+     stxtANRole,
  749. X+     stxtANSex,
  750. X+     stxtANMode,
  751. X+     stxtANWho,
  752. X+     etxtANWho
  753. X+ };
  754. X+ 
  755. X+ typedef struct asknameRec
  756. X+ {
  757. X+     short        anMenu[3];
  758. X+     unsigned char    anWho[32];    /* player name Pascal string */
  759. X+ } asknameRec, *asknamePtr;
  760. X+ 
  761. X+ /* askname menus */
  762. X+ enum
  763. X+ {
  764. X+     anRole,
  765. X+     anSex,
  766. X+     anMode
  767. X+ };
  768. X+ 
  769. X+ enum
  770. X+ {
  771. X+     /* role */
  772. X+     askn_role_start,    /* 0 */
  773. X+     asknArcheologist = askn_role_start,
  774. X+     asknBarbarian,
  775. X+     asknCaveman,        /* Cavewoman */
  776. X+     asknElf,
  777. X+     asknHealer,
  778. X+     asknKnight,
  779. X+     asknPriest,        /* Priestess */
  780. X+     asknRogue,
  781. X+     asknSamurai,
  782. X+     asknTourist,
  783. X+     asknValkyrie,        /* female only */
  784. X+     asknWizard,
  785. X+     askn_role_end,
  786. X+ 
  787. X+     /* sex */
  788. X+     asknMale = 0,
  789. X+     asknFemale,
  790. X+ 
  791. X+     /* mode */
  792. X+     asknRegular = 0,
  793. X+     asknExplore,
  794. X+     asknDebug,
  795. X+     asknQuit        /* special token */
  796. X+ };
  797. X+ 
  798. X  /*
  799. X   * We could use the PSN under sys 7 here ...
  800. X   */
  801. X***************
  802. X*** 72,78 ****
  803. X--- 145,153 ----
  804. X  extern int macwrite ( int fd , void * ptr , unsigned ) ;
  805. X  extern long macseek ( int fd , long pos , short whence ) ;
  806. X  
  807. X+ extern char * macgets ( int fd , char * ptr , unsigned len ) ;
  808. X  
  809. X+ 
  810. X  # if !defined(O_WRONLY)
  811. X  #  include <fcntl.h>
  812. X  # endif
  813. X***************
  814. X*** 167,172 ****
  815. X--- 242,248 ----
  816. X  
  817. X  #define NUM_CANCEL_ITEMS 10
  818. X  
  819. X+ 
  820. X  typedef struct NhWindow {
  821. X      WindowPtr        theWindow ;
  822. X      short            kind ;
  823. X***************
  824. X*** 190,199 ****
  825. X      char            cancelStr [ NUM_CANCEL_ITEMS ] ;
  826. X      char            cancelChar ;
  827. X      char            clear ;
  828. X-     char            cursorDrawn ;
  829. X      short            scrollPos ;
  830. X      ControlHandle    scrollBar ;
  831. X  } NhWindow ;
  832. X  
  833. X  #define NUM_STAT_ROWS 2
  834. X  #define NUM_ROWS 22
  835. X--- 266,277 ----
  836. X      char            cancelStr [ NUM_CANCEL_ITEMS ] ;
  837. X      char            cancelChar ;
  838. X      char            clear ;
  839. X      short            scrollPos ;
  840. X      ControlHandle    scrollBar ;
  841. X  } NhWindow ;
  842. X+ 
  843. X+ extern NhWindow *GetNhWin(WindowPtr mac_win);
  844. X+ 
  845. X  
  846. X  #define NUM_STAT_ROWS 2
  847. X  #define NUM_ROWS 22
  848. X*** /tmp/da10439    Tue Jun  1 16:02:34 1993
  849. X--- include/mfndpos.h    Mon May 17 13:54:57 1993
  850. X***************
  851. X*** 1,4 ****
  852. X! /*    SCCS Id: @(#)mfndpos.h    3.1    90/22/02    */
  853. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  854. X  /* NetHack may be freely redistributed.  See license for details. */
  855. X  
  856. X--- 1,4 ----
  857. X! /*    SCCS Id: @(#)mfndpos.h    3.1    93/05/15    */
  858. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  859. X  /* NetHack may be freely redistributed.  See license for details. */
  860. X  
  861. X***************
  862. X*** 19,24 ****
  863. X--- 19,28 ----
  864. X  #define ALLOW_DIG    0x08000000L    /* digs */
  865. X  #define ALLOW_SANCT    0x20000000L    /* enters temples */
  866. X  #define ALLOW_SSM    0x40000000L    /* ignores scare monster */
  867. X+ #ifdef NHSTDC
  868. X+ #define NOGARLIC    0x80000000UL    /* hates garlic */
  869. X+ #else
  870. X  #define NOGARLIC    0x80000000L    /* hates garlic */
  871. X+ #endif
  872. X  
  873. X  #endif /* MFNDPOS_H */
  874. X*** /tmp/da10471    Tue Jun  1 16:02:41 1993
  875. X--- include/mondata.h    Tue Jun  1 12:12:23 1993
  876. X***************
  877. X*** 1,4 ****
  878. X! /*    SCCS Id: @(#)mondata.h    3.1    92/11/26    */
  879. X  /* Copyright (c) 1989 Mike Threepoint                  */
  880. X  /* NetHack may be freely redistributed.  See license for details. */
  881. X  
  882. X--- 1,4 ----
  883. X! /*    SCCS Id: @(#)mondata.h    3.1    93/05/31    */
  884. X  /* Copyright (c) 1989 Mike Threepoint                  */
  885. X  /* NetHack may be freely redistributed.  See license for details. */
  886. X  
  887. X***************
  888. X*** 25,31 ****
  889. X  #define is_floater(ptr)        ((ptr)->mlet == S_EYE)
  890. X  #define is_clinger(ptr)        (((ptr)->mflags1 & M1_CLING) != 0L)
  891. X  #define is_swimmer(ptr)        (((ptr)->mflags1 & M1_SWIM) != 0L)
  892. X! #define magic_breathing(ptr)    (((ptr)->mflags1 & M1_AMPHIBIOUS) != 0L)
  893. X  #define passes_walls(ptr)    (((ptr)->mflags1 & M1_WALLWALK) != 0L)
  894. X  #define amorphous(ptr)        (((ptr)->mflags1 & M1_AMORPHOUS) != 0L)
  895. X  #define noncorporeal(ptr)    ((ptr)->mlet == S_GHOST)
  896. X--- 25,32 ----
  897. X  #define is_floater(ptr)        ((ptr)->mlet == S_EYE)
  898. X  #define is_clinger(ptr)        (((ptr)->mflags1 & M1_CLING) != 0L)
  899. X  #define is_swimmer(ptr)        (((ptr)->mflags1 & M1_SWIM) != 0L)
  900. X! #define breathless(ptr)        (((ptr)->mflags1 & M1_BREATHLESS) != 0L)
  901. X! #define amphibious(ptr)        (((ptr)->mflags1 & (M1_AMPHIBIOUS | M1_BREATHLESS)) != 0L)
  902. X  #define passes_walls(ptr)    (((ptr)->mflags1 & M1_WALLWALK) != 0L)
  903. X  #define amorphous(ptr)        (((ptr)->mflags1 & M1_AMORPHOUS) != 0L)
  904. X  #define noncorporeal(ptr)    ((ptr)->mlet == S_GHOST)
  905. X***************
  906. X*** 85,92 ****
  907. X  #  ifdef POLYSELF
  908. X  #define can_breathe(ptr)    attacktype(ptr, AT_BREA)
  909. X  #define cantwield(ptr)        (nohands(ptr) || verysmall(ptr))
  910. X  #define cantweararm(ptr)    (breakarm(ptr) || sliparm(ptr))
  911. X! #  endif /* POLYSELF */
  912. X  #define throws_rocks(ptr)    (((ptr)->mflags2 & M2_ROCKTHROW) != 0L)
  913. X  #define type_is_pname(ptr)    (((ptr)->mflags2 & M2_PNAME) != 0L)
  914. X  #define is_lord(ptr)        (((ptr)->mflags2 & M2_LORD) != 0L)
  915. X--- 86,95 ----
  916. X  #  ifdef POLYSELF
  917. X  #define can_breathe(ptr)    attacktype(ptr, AT_BREA)
  918. X  #define cantwield(ptr)        (nohands(ptr) || verysmall(ptr))
  919. X+ #  endif
  920. X+ #  if defined(POLYSELF) || defined(MUSE)
  921. X  #define cantweararm(ptr)    (breakarm(ptr) || sliparm(ptr))
  922. X! #  endif
  923. X  #define throws_rocks(ptr)    (((ptr)->mflags2 & M2_ROCKTHROW) != 0L)
  924. X  #define type_is_pname(ptr)    (((ptr)->mflags2 & M2_PNAME) != 0L)
  925. X  #define is_lord(ptr)        (((ptr)->mflags2 & M2_LORD) != 0L)
  926. X*** /tmp/da10479    Tue Jun  1 16:02:43 1993
  927. X--- include/monflag.h    Mon May 17 13:55:00 1993
  928. X***************
  929. X*** 1,4 ****
  930. X! /*    SCCS Id: @(#)monflag.h    3.1    92/11/25    */
  931. X  /* Copyright (c) 1989 Mike Threepoint                  */
  932. X  /* NetHack may be freely redistributed.  See license for details. */
  933. X  
  934. X--- 1,4 ----
  935. X! /*    SCCS Id: @(#)monflag.h    3.1    93/02/14    */
  936. X  /* Copyright (c) 1989 Mike Threepoint                  */
  937. X  /* NetHack may be freely redistributed.  See license for details. */
  938. X  
  939. X***************
  940. X*** 6,53 ****
  941. X  #define MONFLAG_H
  942. X  
  943. X  #define MS_SILENT    0    /* makes no sound */
  944. X! #define MS_SQEEK    1    /* squeaks, as a rodent */
  945. X! #define MS_SQAWK    2    /* squawks, as a bird */
  946. X! #define MS_HISS        3    /* hisses */
  947. X! #define MS_BUZZ        4    /* buzzes (killer bee) */
  948. X! #define MS_GRUNT    5    /* grunts (or speaks own language) */
  949. X! #define MS_GROWL    6    /* growls */
  950. X! #define MS_BARK        7    /* if full moon, may howl */
  951. X! #define MS_MEW        8    /* mews or hisses */
  952. X! #define MS_ROAR        9    /* roars */
  953. X  #define MS_NEIGH    10    /* neighs, as an equine */
  954. X  #define MS_WAIL        11    /* wails, as a tortured soul */
  955. X  #define MS_GURGLE    12    /* gurgles, as liquid or through saliva */
  956. X  #define MS_BURBLE    13    /* burbles (jabberwock) */
  957. X  #define MS_SHRIEK    15    /* wakes up others */
  958. X  #define MS_LAUGH    17    /* grins, smiles, giggles, and laughs */
  959. X  #define MS_MUMBLE    18    /* says something or other */
  960. X  #define MS_IMITATE    19    /* imitates others (leocrotta) */
  961. X- #define MS_SEDUCE    20    /* "Hello, sailor." (Nymphs) */
  962. X- #define MS_VAMPIRE    21    /* vampiric seduction, Vlad's exclamations */
  963. X  #define MS_ORC        MS_GRUNT    /* intelligent brutes */
  964. X! #define MS_BRIBE    25    /* asks for money, or berates you */
  965. X! #define MS_CUSS        26    /* berates (demons) or intimidates (Wiz) */
  966. X! #define MS_NURSE    27    /* "Take off your shirt, please." */
  967. X! #define MS_DJINNI    28    /* "Thank you for freeing me!" */
  968. X! #define MS_HUMANOID    29    /* generic traveling companion */
  969. X! #define MS_GUARD    30    /* "Please drop that gold and follow me." */
  970. X! #define MS_SELL        31    /* demand payment, complain about shoplifters */
  971. X! #define MS_ORACLE    32    /* do a consultation */
  972. X! #define MS_PRIEST    33    /* ask for contribution; do cleansing */
  973. X  #ifdef KOPS
  974. X! #define MS_ARREST    34    /* "Stop in the name of the law!" (Kops) */
  975. X  #endif
  976. X! #define MS_SOLDIER    35    /* army and watchmen expressions */
  977. X  #ifdef MULDGN
  978. X! #define MS_LEADER    36    /* your class leader */
  979. X! #define MS_NEMESIS    37    /* your nemesis */
  980. X! #define MS_GUARDIAN    38    /* your leader's guards */
  981. X  #endif
  982. X! #define MS_BONES    39    /* rattles bones (skeleton) */
  983. X! #define MS_DEATH    40    /* \                */
  984. X! #define MS_PESTILENCE    41    /*  |- astral level special monsters */
  985. X! #define MS_FAMINE    42    /* /                */
  986. X  
  987. X  
  988. X  #define MR_FIRE         0x01    /* resists fire */
  989. X--- 6,52 ----
  990. X  #define MONFLAG_H
  991. X  
  992. X  #define MS_SILENT    0    /* makes no sound */
  993. X! #define MS_BARK        1    /* if full moon, may howl */
  994. X! #define MS_MEW        2    /* mews or hisses */
  995. X! #define MS_ROAR        3    /* roars */
  996. X! #define MS_GROWL    4    /* growls */
  997. X! #define MS_SQEEK    5    /* squeaks, as a rodent */
  998. X! #define MS_SQAWK    6    /* squawks, as a bird */
  999. X! #define MS_HISS        7    /* hisses */
  1000. X! #define MS_BUZZ        8    /* buzzes (killer bee) */
  1001. X! #define MS_GRUNT    9    /* grunts (or speaks own language) */
  1002. X  #define MS_NEIGH    10    /* neighs, as an equine */
  1003. X  #define MS_WAIL        11    /* wails, as a tortured soul */
  1004. X  #define MS_GURGLE    12    /* gurgles, as liquid or through saliva */
  1005. X  #define MS_BURBLE    13    /* burbles (jabberwock) */
  1006. X+ #define MS_ANIMAL    13    /* up to here are animal noises */
  1007. X  #define MS_SHRIEK    15    /* wakes up others */
  1008. X+ #define MS_BONES    16    /* rattles bones (skeleton) */
  1009. X  #define MS_LAUGH    17    /* grins, smiles, giggles, and laughs */
  1010. X  #define MS_MUMBLE    18    /* says something or other */
  1011. X  #define MS_IMITATE    19    /* imitates others (leocrotta) */
  1012. X  #define MS_ORC        MS_GRUNT    /* intelligent brutes */
  1013. X! #define MS_HUMANOID    20    /* generic traveling companion */
  1014. X  #ifdef KOPS
  1015. X! #define MS_ARREST    21    /* "Stop in the name of the law!" (Kops) */
  1016. X  #endif
  1017. X! #define MS_SOLDIER    22    /* army and watchmen expressions */
  1018. X! #define MS_GUARD    23    /* "Please drop that gold and follow me." */
  1019. X! #define MS_DJINNI    24    /* "Thank you for freeing me!" */
  1020. X! #define MS_NURSE    25    /* "Take off your shirt, please." */
  1021. X! #define MS_SEDUCE    26    /* "Hello, sailor." (Nymphs) */
  1022. X! #define MS_VAMPIRE    27    /* vampiric seduction, Vlad's exclamations */
  1023. X! #define MS_BRIBE    28    /* asks for money, or berates you */
  1024. X! #define MS_CUSS        29    /* berates (demons) or intimidates (Wiz) */
  1025. X! #define MS_RIDER    30    /* astral level special monsters */
  1026. X  #ifdef MULDGN
  1027. X! #define MS_LEADER    31    /* your class leader */
  1028. X! #define MS_NEMESIS    32    /* your nemesis */
  1029. X! #define MS_GUARDIAN    33    /* your leader's guards */
  1030. X  #endif
  1031. X! #define MS_SELL        34    /* demand payment, complain about shoplifters */
  1032. X! #define MS_ORACLE    35    /* do a consultation */
  1033. X! #define MS_PRIEST    36    /* ask for contribution; do cleansing */
  1034. X  
  1035. X  
  1036. X  #define MR_FIRE         0x01    /* resists fire */
  1037. X***************
  1038. X*** 72,78 ****
  1039. X  #define M1_CONCEAL    0x00000080L    /* hides under objects */
  1040. X  #define M1_HIDE        0x00000100L    /* mimics, blends in with ceiling */
  1041. X  #define M1_AMPHIBIOUS    0x00000200L    /* can survive underwater */
  1042. X! #define M1_BREATHLESS    0x00000200L    /* doesn't need to breathe */
  1043. X  #define M1_NOEYES    0x00001000L    /* no eyes to gaze into or blind */
  1044. X  #define M1_NOHANDS    0x00002000L    /* no hands to handle things */
  1045. X  #define M1_NOLIMBS    0x00006000L    /* no arms/legs to kick/wear on */
  1046. X--- 71,77 ----
  1047. X  #define M1_CONCEAL    0x00000080L    /* hides under objects */
  1048. X  #define M1_HIDE        0x00000100L    /* mimics, blends in with ceiling */
  1049. X  #define M1_AMPHIBIOUS    0x00000200L    /* can survive underwater */
  1050. X! #define M1_BREATHLESS    0x00000400L    /* doesn't need to breathe */
  1051. X  #define M1_NOEYES    0x00001000L    /* no eyes to gaze into or blind */
  1052. X  #define M1_NOHANDS    0x00002000L    /* no hands to handle things */
  1053. X  #define M1_NOLIMBS    0x00006000L    /* no arms/legs to kick/wear on */
  1054. X***************
  1055. X*** 93,99 ****
  1056. X--- 92,102 ----
  1057. X  #define M1_CARNIVORE    0x20000000L    /* eats corpses */
  1058. X  #define M1_HERBIVORE    0x40000000L    /* eats fruits */
  1059. X  #define M1_OMNIVORE    0x60000000L    /* eats both */
  1060. X+ #ifdef NHSTDC
  1061. X+ #define M1_METALLIVORE    0x80000000UL    /* eats metal */
  1062. X+ #else
  1063. X  #define M1_METALLIVORE    0x80000000L    /* eats metal */
  1064. X+ #endif
  1065. X  
  1066. X  #define M2_NOPOLY    0x00000001L    /* players mayn't poly into one */
  1067. X  #define M2_UNDEAD    0x00000002L    /* is walking dead */
  1068. X***************
  1069. X*** 123,129 ****
  1070. X--- 126,136 ----
  1071. X  #define M2_GREEDY    0x10000000L    /* likes gold */
  1072. X  #define M2_JEWELS    0x20000000L    /* likes gems */
  1073. X  #define M2_COLLECT    0x40000000L    /* picks up weapons and food */
  1074. X+ #ifdef NHSTDC
  1075. X+ #define M2_MAGIC    0x80000000UL    /* picks up magic items */
  1076. X+ #else
  1077. X  #define M2_MAGIC    0x80000000L    /* picks up magic items */
  1078. X+ #endif
  1079. X  
  1080. X  #define M3_WANTSAMUL    0x01        /* would like to steal the amulet */
  1081. X  #define M3_WANTSBELL    0x02        /* wants the bell */
  1082. X*** /tmp/da10519    Tue Jun  1 16:02:52 1993
  1083. X--- include/obj.h    Wed Mar 31 14:19:42 1993
  1084. X***************
  1085. X*** 1,4 ****
  1086. X! /*    SCCS Id: @(#)obj.h    3.1    92/10/18    */
  1087. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1088. X  /* NetHack may be freely redistributed.  See license for details. */
  1089. X  
  1090. X--- 1,4 ----
  1091. X! /*    SCCS Id: @(#)obj.h    3.1    93/03/30    */
  1092. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1093. X  /* NetHack may be freely redistributed.  See license for details. */
  1094. X  
  1095. X***************
  1096. X*** 102,109 ****
  1097. X  #define dealloc_obj(obj) free((genericptr_t) (obj))
  1098. X  #define ONAME(otmp)    ((char *)(otmp)->oextra)
  1099. X  
  1100. X! #define Is_container(otmp) (otmp->otyp >= LARGE_BOX && \
  1101. X!                 otmp->otyp <= BAG_OF_TRICKS)
  1102. X  #define Is_box(otmp)    (otmp->otyp == LARGE_BOX || otmp->otyp == CHEST)
  1103. X  #define Is_mbag(otmp)    (otmp->otyp == BAG_OF_HOLDING || \
  1104. X               otmp->otyp == BAG_OF_TRICKS)
  1105. X--- 102,109 ----
  1106. X  #define dealloc_obj(obj) free((genericptr_t) (obj))
  1107. X  #define ONAME(otmp)    ((char *)(otmp)->oextra)
  1108. X  
  1109. X! #define Has_contents(o) ((Is_container(o) || (o)->otyp == STATUE) && (o)->cobj)
  1110. X! #define Is_container(o) ((o)->otyp >= LARGE_BOX && (o)->otyp <= BAG_OF_TRICKS)
  1111. X  #define Is_box(otmp)    (otmp->otyp == LARGE_BOX || otmp->otyp == CHEST)
  1112. X  #define Is_mbag(otmp)    (otmp->otyp == BAG_OF_HOLDING || \
  1113. X               otmp->otyp == BAG_OF_TRICKS)
  1114. X*** /tmp/da10543    Tue Jun  1 16:02:58 1993
  1115. X--- include/patchlevel.h    Fri May 28 14:24:33 1993
  1116. X***************
  1117. X*** 1,72 ****
  1118. X  /*
  1119. X!  *  Patch 1, July 31, 1989
  1120. X!  *  add support for Atari TOS (courtesy Eric Smith) and Andrew File System
  1121. X!  *    (courtesy Ralf Brown)
  1122. X!  *  include the uuencoded version of termcap.arc for the MSDOS versions that
  1123. X!  *    was included with 2.2 and 2.3
  1124. X!  *  make a number of simple changes to accommodate various compilers
  1125. X!  *  fix a handful of bugs, and do some code cleaning elsewhere
  1126. X!  *  add more instructions for new environments and things commonly done wrong
  1127. X   */
  1128. X  
  1129. X  /*
  1130. X!  *  Patch 2, August 16, 1989
  1131. X!  *  add support for OS/2 (courtesy Timo Hakulinen)
  1132. X!  *  add a better makefile for MicroSoft C (courtesy Paul Gyugyi)
  1133. X!  *  more accomodation of compilers and preprocessors
  1134. X!  *  add better screen-size sensing
  1135. X!  *  expand color use for PCs and introduce it for SVR3 UNIX machines
  1136. X!  *  extend '/' to multiple identifications
  1137. X!  *  allow meta key to be used to invoke extended commands
  1138. X!  *  fix various minor bugs, and do further code cleaning
  1139. X   */
  1140. X  
  1141. X  /*
  1142. X!  *  Patch 3, September 6, 1989
  1143. X!  *  add war hammers and revise object prices
  1144. X!  *  extend prototypes to ANSI compilers in addition to the previous MSDOS ones
  1145. X!  *  move object-on-floor references into functions in preparation for planned
  1146. X!  *    data structures to allow faster access and better colors
  1147. X!  *  fix some more bugs, and extend the portability of things added in earlier
  1148. X!  *    patches
  1149. X   */
  1150. X  
  1151. X  /*
  1152. X!  *  Patch 4, September 27, 1989
  1153. X!  *  add support for VMS (courtesy David Gentzel)
  1154. X!  *  move monster-on-floor references into functions and implement the new
  1155. X!  *    lookup structure for both objects and monsters
  1156. X!  *  extend the definitions of objects and monsters to provide "living color"
  1157. X!  *    in the dungeon, instead of a single monster color
  1158. X!  *  ifdef varargs usage to satisfy ANSI compilers
  1159. X!  *  standardize on the color 'gray'
  1160. X!  *  assorted bug fixes
  1161. X   */
  1162. X  
  1163. X  /*
  1164. X!  *  Patch 5, October 15, 1989
  1165. X!  *  add support for Macintosh OS (courtesy Johnny Lee)
  1166. X!  *  fix annoying dependency loop via new color.h file
  1167. X!  *  allow interruption while eating -- general handling of partially eaten food
  1168. X!  *  smarter treatment of iron balls (courtesy Kevin Darcy)
  1169. X!  *  a handful of other bug fixes
  1170. X   */
  1171. X  
  1172. X  /*
  1173. X!  *  Patch 6, November 19, 1989
  1174. X!  *  add overlay support for MS-DOS (courtesy Pierre Martineau, Stephen
  1175. X!  *    Spackman, and Norm Meluch)
  1176. X!  *  refine Macintosh port
  1177. X!  *  different door states show as different symbols (courtesy Ari Huttunen)
  1178. X!  *  smarter drawbridges (courtesy Kevin Darcy)
  1179. X!  *  add CLIPPING and split INFERNO off HARD
  1180. X!  *  further refine eating code wrt picking up and resumption
  1181. X!  *  make first few levels easier, by adding :x monsters and increasing initial
  1182. X!  *    attribute points and hitting probability
  1183. X!  *  teach '/' about configurable symbols
  1184. X   */
  1185. X  
  1186. X  /*
  1187. X   *  Patch 7, February 19, 1990
  1188. X   *  refine overlay support to handle portions of .c files through OVLx
  1189. X   *    (courtesy above plus Kevin Smolkowski)
  1190. X--- 1,93 ----
  1191. X+ /*    SCCS Id: @(#)patchlevel.h    3.1    93/04/07    */
  1192. X+ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1193. X+ /* NetHack may be freely redistributed.  See license for details. */
  1194. X+ 
  1195. X+ /* NetHack 3.1.2 */
  1196. X+ #define VERSION_MAJOR    3
  1197. X+ #define VERSION_MINOR    1
  1198. X  /*
  1199. X!  * PATCHLEVEL is updated for each release.
  1200. X   */
  1201. X+ #define PATCHLEVEL    2
  1202. X+ /*
  1203. X+  * Incrementing EDITLEVEL can be used to force invalidation of old bones
  1204. X+  * and save files.
  1205. X+  */
  1206. X+ #define EDITLEVEL    0
  1207. X  
  1208. X  /*
  1209. X!  *  Patch 2, June 1, 1993
  1210. X!  *  add tty windowing to Mac and Amiga ports and revise native windowing
  1211. X!  *  allow direct screen I/O for MS-DOS versions instead of going through
  1212. X!  *    termcap routines (courtesy Michael Allison and Kevin Smolkowski)
  1213. X!  *  changes for NEC PC-9801 and various termcap.zip fixes by Yamamoto Keizo
  1214. X!  *  SYSV 386 music driver ported to 386BSD (courtesy Andrew Chernov) and
  1215. X!  *    SCO UNIX (courtesy Andreas Arens)
  1216. X!  *  enhanced pickup and disclosure options
  1217. X!  *  removed fatal bugs dealing with cursed bags of holding, renaming
  1218. X!  *    shopkeepers, objects falling through trapdoors on deep levels,
  1219. X!  *    and kicking embedded objects loose, and many more minor ones
  1220. X   */
  1221. X  
  1222. X  /*
  1223. X!  *  Patch 1, February 25, 1993
  1224. X!  *  add Windows NT console port (courtesy Michael Allison)
  1225. X!  *  polishing of Amiga, Mac, and X11 windowing
  1226. X!  *  fixing many small bugs, including the infamous 3.0 nurse relmon bug
  1227. X   */
  1228. X  
  1229. X  /*
  1230. X!  *  NetHack 3.1.0, January 25, 1993
  1231. X!  *  many, many changes and bugfixes -- some of the highlights include:
  1232. X!  *  display rewrite using line-of-sight vision
  1233. X!  *  general window interface, with the ability to use multiple interfaces
  1234. X!  *    in the same executable
  1235. X!  *  intelligent monsters
  1236. X!  *  enhanced dungeon mythology
  1237. X!  *  branching dungeons with more special levels, quest dungeons, and
  1238. X!  *    multi-level endgame
  1239. X!  *  more artifacts and more uses for artifacts
  1240. X!  *  generalization to multiple shops with damage repair
  1241. X!  *  X11 interface
  1242. X!  *  ability to recover crashed games
  1243. X!  *  full rewrite of Macintosh port
  1244. X!  *  Amiga splitter
  1245. X!  *  directory rearrangement (dat, doc, sys, win, util)
  1246. X   */
  1247. X  
  1248. X+ /* Version 3.1 */
  1249. X+ 
  1250. X+ /*****************************************************************************/
  1251. X+ /* Version 3.0 */
  1252. X+ 
  1253. X  /*
  1254. X!  *  Patch 10, February 5, 1991
  1255. X!  *  extend overlay manager to multiple files for easier binary distribution
  1256. X!  *  allow for more system and compiler variance
  1257. X!  *  remove more small insects
  1258. X   */
  1259. X  
  1260. X  /*
  1261. X!  *  Patch 9, June 26, 1990
  1262. X!  *  clear up some confusing documentation
  1263. X!  *  smooth some more rough edges in various ports
  1264. X!  *  and fix a couple more bugs
  1265. X   */
  1266. X  
  1267. X  /*
  1268. X+  *  Patch 8, June 3, 1990
  1269. X+  *  further debug and refine Macintosh port
  1270. X+  *  refine the overlay manager, rearrange the OVLx breakdown for better
  1271. X+  *    efficiency, rename the overlay macros, and split off the overlay
  1272. X+  *    instructions to Install.ovl
  1273. X+  *  introduce NEARDATA for better Amiga efficiency
  1274. X+  *  support for more VMS versions (courtesy Joshua Delahunty and Pat Rankin)
  1275. X+  *  more const fixes
  1276. X+  *  better support for common graphics (DEC VT and IBM)
  1277. X+  *  and a number of simple fixes and consistency extensions
  1278. X+  */
  1279. X+ 
  1280. X+ /*
  1281. X   *  Patch 7, February 19, 1990
  1282. X   *  refine overlay support to handle portions of .c files through OVLx
  1283. X   *    (courtesy above plus Kevin Smolkowski)
  1284. X***************
  1285. X*** 85,144 ****
  1286. X   */
  1287. X  
  1288. X  /*
  1289. X!  *  Patch 8, June 3, 1990
  1290. X!  *  further debug and refine Macintosh port
  1291. X!  *  refine the overlay manager, rearrange the OVLx breakdown for better
  1292. X!  *    efficiency, rename the overlay macros, and split off the overlay
  1293. X!  *    instructions to Install.ovl
  1294. X!  *  introduce NEARDATA for better Amiga efficiency
  1295. X!  *  support for more VMS versions (courtesy Joshua Delahunty and Pat Rankin)
  1296. X!  *  more const fixes
  1297. X!  *  better support for common graphics (DEC VT and IBM)
  1298. X!  *  and a number of simple fixes and consistency extensions
  1299. X   */
  1300. X  
  1301. X  /*
  1302. X!  *  Patch 9, June 26, 1990
  1303. X!  *  clear up some confusing documentation
  1304. X!  *  smooth some more rough edges in various ports
  1305. X!  *  and fix a couple more bugs
  1306. X   */
  1307. X  
  1308. X  /*
  1309. X!  *  Patch 10, February 5, 1991
  1310. X!  *  extend overlay manager to multiple files for easier binary distribution
  1311. X!  *  allow for more system and compiler variance
  1312. X!  *  remove more small insects
  1313. X   */
  1314. X  
  1315. X! /* #define PATCHLEVEL    10 */
  1316. X  
  1317. X- /* END Version 3.0, BEGIN Version 3.1 */
  1318. X- 
  1319. X  /*
  1320. X!  *  NetHack 3.1, January 25, 1993
  1321. X!  *  many, many changes and bugfixes -- some of the highlights include:
  1322. X!  *  display rewrite using line-of-sight vision
  1323. X!  *  general window interface, with the ability to use multiple interfaces
  1324. X!  *    in the same executable
  1325. X!  *  intelligent monsters
  1326. X!  *  enhanced dungeon mythology
  1327. X!  *  branching dungeons with more special levels, quest dungeons, and
  1328. X!  *    multi-level endgame
  1329. X!  *  more artifacts and more uses for artifacts
  1330. X!  *  generalization to multiple shops with damage repair
  1331. X!  *  X11 interface
  1332. X!  *  ability to recover crashed games
  1333. X!  *  full rewrite of Macintosh port
  1334. X!  *  Amiga splitter
  1335. X!  *  directory rearrangement (dat, doc, sys, win, util)
  1336. X   */
  1337. X  
  1338. X  /*
  1339. X!  *  Patch 1, February 25, 1993
  1340. X!  *  add Windows NT console port (courtesy Michael Allison)
  1341. X!  *  polishing of Amiga, Mac, and X11 windowing
  1342. X!  *  fixing many small bugs, including the infamous 3.0 nurse relmon bug
  1343. X   */
  1344. X  
  1345. X- #define PATCHLEVEL    1
  1346. X--- 106,175 ----
  1347. X   */
  1348. X  
  1349. X  /*
  1350. X!  *  Patch 6, November 19, 1989
  1351. X!  *  add overlay support for MS-DOS (courtesy Pierre Martineau, Stephen
  1352. X!  *    Spackman, and Norm Meluch)
  1353. X!  *  refine Macintosh port
  1354. X!  *  different door states show as different symbols (courtesy Ari Huttunen)
  1355. X!  *  smarter drawbridges (courtesy Kevin Darcy)
  1356. X!  *  add CLIPPING and split INFERNO off HARD
  1357. X!  *  further refine eating code wrt picking up and resumption
  1358. X!  *  make first few levels easier, by adding :x monsters and increasing initial
  1359. X!  *    attribute points and hitting probability
  1360. X!  *  teach '/' about configurable symbols
  1361. X   */
  1362. X  
  1363. X  /*
  1364. X!  *  Patch 5, October 15, 1989
  1365. X!  *  add support for Macintosh OS (courtesy Johnny Lee)
  1366. X!  *  fix annoying dependency loop via new color.h file
  1367. X!  *  allow interruption while eating -- general handling of partially eaten food
  1368. X!  *  smarter treatment of iron balls (courtesy Kevin Darcy)
  1369. X!  *  a handful of other bug fixes
  1370. X   */
  1371. X  
  1372. X  /*
  1373. X!  *  Patch 4, September 27, 1989
  1374. X!  *  add support for VMS (courtesy David Gentzel)
  1375. X!  *  move monster-on-floor references into functions and implement the new
  1376. X!  *    lookup structure for both objects and monsters
  1377. X!  *  extend the definitions of objects and monsters to provide "living color"
  1378. X!  *    in the dungeon, instead of a single monster color
  1379. X!  *  ifdef varargs usage to satisfy ANSI compilers
  1380. X!  *  standardize on the color 'gray'
  1381. X!  *  assorted bug fixes
  1382. X   */
  1383. X  
  1384. X! /*
  1385. X!  *  Patch 3, September 6, 1989
  1386. X!  *  add war hammers and revise object prices
  1387. X!  *  extend prototypes to ANSI compilers in addition to the previous MSDOS ones
  1388. X!  *  move object-on-floor references into functions in preparation for planned
  1389. X!  *    data structures to allow faster access and better colors
  1390. X!  *  fix some more bugs, and extend the portability of things added in earlier
  1391. X!  *    patches
  1392. X!  */
  1393. X  
  1394. X  /*
  1395. X!  *  Patch 2, August 16, 1989
  1396. X!  *  add support for OS/2 (courtesy Timo Hakulinen)
  1397. X!  *  add a better makefile for MicroSoft C (courtesy Paul Gyugyi)
  1398. X!  *  more accomodation of compilers and preprocessors
  1399. X!  *  add better screen-size sensing
  1400. X!  *  expand color use for PCs and introduce it for SVR3 UNIX machines
  1401. X!  *  extend '/' to multiple identifications
  1402. X!  *  allow meta key to be used to invoke extended commands
  1403. X!  *  fix various minor bugs, and do further code cleaning
  1404. X   */
  1405. X  
  1406. X  /*
  1407. X!  *  Patch 1, July 31, 1989
  1408. X!  *  add support for Atari TOS (courtesy Eric Smith) and Andrew File System
  1409. X!  *    (courtesy Ralf Brown)
  1410. X!  *  include the uuencoded version of termcap.arc for the MSDOS versions that
  1411. X!  *    was included with 2.2 and 2.3
  1412. X!  *  make a number of simple changes to accommodate various compilers
  1413. X!  *  fix a handful of bugs, and do some code cleaning elsewhere
  1414. X!  *  add more instructions for new environments and things commonly done wrong
  1415. X   */
  1416. X  
  1417. X*** /tmp/da10551    Tue Jun  1 16:03:00 1993
  1418. X--- include/pcconf.h    Tue May 11 10:02:50 1993
  1419. X***************
  1420. X*** 1,4 ****
  1421. X! /*    SCCS Id: @(#)pcconf.h    3.1    92/10/23    */
  1422. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1423. X  /* NetHack may be freely redistributed.  See license for details. */
  1424. X  
  1425. X--- 1,4 ----
  1426. X! /*    SCCS Id: @(#)pcconf.h    3.1    93/04/04      */
  1427. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1428. X  /* NetHack may be freely redistributed.  See license for details. */
  1429. X  
  1430. X***************
  1431. X*** 35,40 ****
  1432. X--- 35,51 ----
  1433. X  
  1434. X  # define ANSI_DEFAULT    /* allows NetHack to run without a ./termcap */
  1435. X  
  1436. X+ /*# define NO_TERMS    /* Allows Nethack to run without ansi.sys by linking */
  1437. X+             /* screen routines into the .exe     */
  1438. X+ 
  1439. X+ # ifdef NO_TERMS        /* if NO_TERMS select screen package below */
  1440. X+ #  define SCREEN_BIOS        /* Use bios calls for all screen control */
  1441. X+ /*  #define SCREEN_DJGPPFAST    /* Use djgpp fast screen routines       */
  1442. X+ # endif
  1443. X+ 
  1444. X+ /*# define PC9801    /* Allows NetHack to run on NEC PC-9801 machines */
  1445. X+             /* Yamamoto Keizo */
  1446. X+ 
  1447. X  # define RANDOM        /* have Berkeley random(3) */
  1448. X  
  1449. X  #endif /* MSDOS configuration stuff */
  1450. X***************
  1451. X*** 104,109 ****
  1452. X--- 115,126 ----
  1453. X  #ifdef MSDOS
  1454. X  # define TEXTCOLOR /* */
  1455. X  #endif
  1456. X+ 
  1457. X+ #ifdef NO_TERMS        /* Sanity check, do not modify this block */
  1458. X+ # undef TERMLIB
  1459. X+ # undef ANSI_DEFAULT
  1460. X+ # define ASCIIGRAPH
  1461. X+ #endif 
  1462. X  
  1463. X  #ifdef MSC7_WARN    /* define with cl /DMSC7_WARN    */
  1464. X  #pragma warning(disable:4131)
  1465. X*** /tmp/da10599    Tue Jun  1 16:03:11 1993
  1466. X--- include/rm.h    Wed May 26 14:47:19 1993
  1467. X***************
  1468. X*** 347,352 ****
  1469. X--- 347,353 ----
  1470. X      char        *yuk2[COLNO-1][ROWNO];
  1471. X  #endif
  1472. X      struct obj        *objlist;
  1473. X+     struct obj        *buriedobjlist;
  1474. X      struct monst    *monlist;
  1475. X      struct damage    *damagelist;
  1476. X      struct levelflags    flags;
  1477. X*** /tmp/da10623    Tue Jun  1 16:03:17 1993
  1478. X--- include/system.h    Tue Apr  6 15:58:19 1993
  1479. X***************
  1480. X*** 272,278 ****
  1481. X  E void *FDECL(memcpy, (void *,const void *,size_t));
  1482. X  E void *FDECL(memset, (void *,int,size_t));
  1483. X  # else
  1484. X! #  if defined(AZTEC_50) || defined(NHSTDC)
  1485. X  E int  FDECL(memcmp, (const void *, const void *, size_t));
  1486. X  E void *FDECL(memcpy, (void *, const void *, size_t));
  1487. X  E void *FDECL(memset, (void *, int, size_t));
  1488. X--- 272,278 ----
  1489. X  E void *FDECL(memcpy, (void *,const void *,size_t));
  1490. X  E void *FDECL(memset, (void *,int,size_t));
  1491. X  # else
  1492. X! #  if defined(AZTEC_50) || defined(NHSTDC) || defined(WIN32)
  1493. X  E int  FDECL(memcmp, (const void *, const void *, size_t));
  1494. X  E void *FDECL(memcpy, (void *, const void *, size_t));
  1495. X  E void *FDECL(memset, (void *, int, size_t));
  1496. X*** /tmp/da10631    Tue Jun  1 16:03:20 1993
  1497. X--- include/termcap.h    Wed Mar  3 14:21:42 1993
  1498. X***************
  1499. X*** 12,18 ****
  1500. X  #endif
  1501. X  
  1502. X  /* might display need graphics code? */
  1503. X! #if !defined(AMIGA) && !defined(TOS)
  1504. X  # if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
  1505. X  #  define ASCIIGRAPH
  1506. X  # endif
  1507. X--- 12,18 ----
  1508. X  #endif
  1509. X  
  1510. X  /* might display need graphics code? */
  1511. X! #if !defined(AMIGA) && !defined(TOS) && !defined(MAC)
  1512. X  # if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
  1513. X  #  define ASCIIGRAPH
  1514. X  # endif
  1515. X*** /tmp/da10647    Tue Jun  1 16:03:23 1993
  1516. X--- include/tradstdc.h    Tue Jun  1 11:36:29 1993
  1517. X***************
  1518. X*** 1,4 ****
  1519. X! /*    SCCS Id: @(#)tradstdc.h    3.1    92/04/01    */
  1520. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1521. X  /* NetHack may be freely redistributed.  See license for details. */
  1522. X  
  1523. X--- 1,4 ----
  1524. X! /*    SCCS Id: @(#)tradstdc.h    3.1    93/05/30    */
  1525. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1526. X  /* NetHack may be freely redistributed.  See license for details. */
  1527. X  
  1528. X***************
  1529. X*** 143,157 ****
  1530. X  #  endif
  1531. X  # endif
  1532. X  
  1533. X! # if !defined(LATTICE) && !defined(MAC)
  1534. X!         /* Lattice can't even PARSE the const below! */
  1535. X!         /* MPW can parse but expects an identifier, not a keyword... */
  1536. X! #  if defined(ULTRIX_PROTO) && !defined(NHSTDC) && !defined(const)
  1537. X! #  define const        /* the system header files are *not* __STDC__ */
  1538. X  #  endif
  1539. X- #  if defined(apollo) && !defined(const)
  1540. X- #  define const         /* too much trouble with printf(char *format, ...) */
  1541. X- #  endif                 /* instead of printf(const char *format, ...) etc. */
  1542. X  # endif
  1543. X  
  1544. X  #else /* NHSTDC */    /* a "traditional" C  compiler */
  1545. X--- 143,159 ----
  1546. X  #  endif
  1547. X  # endif
  1548. X  
  1549. X! /*
  1550. X!  * Suppress `const' if necessary and not handled elsewhere.
  1551. X!  * Don't use `#if defined(xxx) && !defined(const)'
  1552. X!  * because some compilers choke on `defined(const)'.
  1553. X!  * This has been observed with Lattice, MPW, and High C.
  1554. X!  */
  1555. X! # if (defined(ULTRIX_PROTO) && !defined(NHSTDC)) || defined(apollo)
  1556. X!     /* the system header files don't use `const' properly */
  1557. X! #  ifndef const
  1558. X! #   define const
  1559. X  #  endif
  1560. X  # endif
  1561. X  
  1562. X  #else /* NHSTDC */    /* a "traditional" C  compiler */
  1563. X*** /tmp/da10655    Tue Jun  1 16:03:25 1993
  1564. X--- include/trampoli.h    Thu May 20 16:14:30 1993
  1565. X***************
  1566. X*** 14,19 ****
  1567. X--- 14,23 ----
  1568. X  #define dorub()   dorub_()
  1569. X  
  1570. X  
  1571. X+ /* ### artifact.c ### */
  1572. X+ #define doinvoke()     doinvoke_()
  1573. X+ 
  1574. X+ 
  1575. X  /* ### cmd.c ### */
  1576. X  #define doextcmd()         doextcmd_()
  1577. X  #define doextlist()        doextlist_()
  1578. X***************
  1579. X*** 215,220 ****
  1580. X--- 219,228 ----
  1581. X  /* ### read.c ### */
  1582. X  #define doread()       doread_()
  1583. X  #define set_lit(x, y, val) set_lit_(x, y, val)
  1584. X+ 
  1585. X+ 
  1586. X+ /* ### rip.c ### */
  1587. X+ #define genl_outrip(tmpwin, how) genl_outrip_(tmpwin, how)
  1588. X  
  1589. X  
  1590. X  /* ### save.c ### */
  1591. X*** /tmp/da10671    Tue Jun  1 16:03:29 1993
  1592. X--- include/unixconf.h    Tue May 11 10:05:10 1993
  1593. X***************
  1594. X*** 20,26 ****
  1595. X  
  1596. X  /* define exactly one of the following four choices */
  1597. X  #define BSD        /* define for 4.n BSD  */
  1598. X!             /* also for relatives like SunOS and DG/UX */
  1599. X  /* #define ULTRIX    /* define for Ultrix v3.0 or higher (but not lower) */
  1600. X              /* Use BSD for < v3.0 */
  1601. X              /* "ULTRIX" not to be confused with "ultrix" */
  1602. X--- 20,26 ----
  1603. X  
  1604. X  /* define exactly one of the following four choices */
  1605. X  #define BSD        /* define for 4.n BSD  */
  1606. X!             /* also for relatives like SunOS, Linux and DG/UX */
  1607. X  /* #define ULTRIX    /* define for Ultrix v3.0 or higher (but not lower) */
  1608. X              /* Use BSD for < v3.0 */
  1609. X              /* "ULTRIX" not to be confused with "ultrix" */
  1610. X***************
  1611. X*** 34,39 ****
  1612. X--- 34,40 ----
  1613. X  #define NETWORK    /* if running on a networked system */
  1614. X              /* e.g. Suns sharing a playground through NFS */
  1615. X  #define SUNOS4    /* SunOS 4.x */
  1616. X+ /* #define LINUX  /* Another Unix clone running on Intel processors */
  1617. X  /* #define GENIX    /* Yet Another Unix Clone */
  1618. X  /* #define HISX        /* Bull Unix for XPS Machines */
  1619. X  /* #define BOS        /* Bull Open Software - Unix for DPX/2 Machines */
  1620. X***************
  1621. X*** 45,52 ****
  1622. X              /* or X11 color    */
  1623. X  /* #define POSIX_JOB_CONTROL    /* use System V POSIX job control */
  1624. X  /* #define POSIX_TYPES    /* use POSIX types for system calls and termios */
  1625. X  
  1626. X- 
  1627. X  #define OPENWINBUG    /* avoid a problem using OpenWindows 3.0 for X11
  1628. X                 on SunOS 4.1.x, x>= 2 */
  1629. X  /* #define PYRAMID_BUG    /* avoid a bug on the Pyramid */
  1630. X--- 46,54 ----
  1631. X              /* or X11 color    */
  1632. X  /* #define POSIX_JOB_CONTROL    /* use System V POSIX job control */
  1633. X  /* #define POSIX_TYPES    /* use POSIX types for system calls and termios */
  1634. X+                         /* define for platforms using the GNU libraries */
  1635. X+                         /* linux, etc .. */
  1636. X  
  1637. X  #define OPENWINBUG    /* avoid a problem using OpenWindows 3.0 for X11
  1638. X                 on SunOS 4.1.x, x>= 2 */
  1639. X  /* #define PYRAMID_BUG    /* avoid a bug on the Pyramid */
  1640. X***************
  1641. X*** 60,67 ****
  1642. X  /* #define RANDOM    /* if neither random/srandom nor lrand48/srand48
  1643. X                 is available from your system */
  1644. X  
  1645. X! /* #define SYSV386MUSIC    /* Play real music through speaker on systems with
  1646. X                 music driver installed */
  1647. X  
  1648. X  
  1649. X  /*
  1650. X--- 62,72 ----
  1651. X  /* #define RANDOM    /* if neither random/srandom nor lrand48/srand48
  1652. X                 is available from your system */
  1653. X  
  1654. X! /* see sys/unix/snd86.shr for more information on these */
  1655. X! /* #define UNIX386MUSIC    /* Play real music through speaker on systems with
  1656. X                 music driver installed */
  1657. X+ /* #define VPIX_MUSIC    /* Play real music through speaker on systems with
  1658. X+                built-in VPIX support */
  1659. X  
  1660. X  
  1661. X  /*
  1662. X*** /tmp/da10687    Tue Jun  1 16:03:33 1993
  1663. X--- include/vision.h    Mon May 17 13:55:03 1993
  1664. X***************
  1665. X*** 1,4 ****
  1666. X! /*    SCCS Id: @(#)vision.h    3.1    92/11/14    */
  1667. X  /* Copyright (c) Dean Luick, with acknowledgements to Dave Cohrs, 1990.    */
  1668. X  /* NetHack may be freely redistributed.  See license for details.    */
  1669. X  
  1670. X--- 1,4 ----
  1671. X! /*    SCCS Id: @(#)vision.h    3.1    93/05/15    */
  1672. X  /* Copyright (c) Dean Luick, with acknowledgements to Dave Cohrs, 1990.    */
  1673. X  /* NetHack may be freely redistributed.  See license for details.    */
  1674. X  
  1675. X***************
  1676. X*** 44,49 ****
  1677. X  #define MAX_RADIUS 15    /* this is in points from the source */
  1678. X  
  1679. X  /* Use this macro to get a list of distances of the edges (see vision.c). */
  1680. X! #define circle_ptr(z) (&circle_data[circle_start[z]])
  1681. X  
  1682. X  #endif /* VISION_H */
  1683. X--- 44,49 ----
  1684. X  #define MAX_RADIUS 15    /* this is in points from the source */
  1685. X  
  1686. X  /* Use this macro to get a list of distances of the edges (see vision.c). */
  1687. X! #define circle_ptr(z) (&circle_data[(int)circle_start[z]])
  1688. X  
  1689. X  #endif /* VISION_H */
  1690. X*** /tmp/da10695    Tue Jun  1 16:03:36 1993
  1691. X--- include/vmsconf.h    Tue Jun  1 10:50:57 1993
  1692. X***************
  1693. X*** 1,4 ****
  1694. X! /*    SCCS Id: @(#)vmsconf.h    3.1    92/12/11    */
  1695. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1696. X  /* NetHack may be freely redistributed.  See license for details. */
  1697. X  
  1698. X--- 1,4 ----
  1699. X! /*    SCCS Id: @(#)vmsconf.h    3.1    93/05/29    */
  1700. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  1701. X  /* NetHack may be freely redistributed.  See license for details. */
  1702. X  
  1703. X***************
  1704. X*** 16,22 ****
  1705. X   *   extra room for patching longer values into an existing executable.
  1706. X   */
  1707. X  #define Local_WIZARD    "NHWIZARD\0\0\0\0"
  1708. X! #define Local_HACKDIR    "DISK$USERS:[GAMES.NETHACK.3-1-0.PLAY]\0\0\0\0\0\0"
  1709. X  
  1710. X  /*
  1711. X   * This section cleans up the stuff done in config.h so that it
  1712. X--- 16,22 ----
  1713. X   *   extra room for patching longer values into an existing executable.
  1714. X   */
  1715. X  #define Local_WIZARD    "NHWIZARD\0\0\0\0"
  1716. X! #define Local_HACKDIR    "DISK$USERS:[GAMES.NETHACK.3-1-2.PLAY]\0\0\0\0\0\0\0\0"
  1717. X  
  1718. X  /*
  1719. X   * This section cleans up the stuff done in config.h so that it
  1720. X***************
  1721. X*** 56,63 ****
  1722. X  #ifdef COMPRESS
  1723. X  # undef COMPRESS
  1724. X  #endif
  1725. X! #ifndef ZEROCOMP
  1726. X! # define ZEROCOMP
  1727. X  #endif
  1728. X  
  1729. X  /* vision algorithm */
  1730. X--- 56,63 ----
  1731. X  #ifdef COMPRESS
  1732. X  # undef COMPRESS
  1733. X  #endif
  1734. X! #ifndef INTERNAL_COMP
  1735. X! # define INTERNAL_COMP
  1736. X  #endif
  1737. X  
  1738. X  /* vision algorithm */
  1739. X***************
  1740. X*** 210,215 ****
  1741. X--- 210,218 ----
  1742. X  /* VMS global names are case insensitive... */
  1743. X  #define An vms_an
  1744. X  #define The vms_the
  1745. X+ 
  1746. X+ /* avoid global symbol in Alpha/VMS V1.5 STARLET library (link trouble) */
  1747. X+ #define ospeed vms_ospeed
  1748. X  
  1749. X  /* used in several files which don't #include "extern.h" */
  1750. X  extern void FDECL(vms_exit, (int));
  1751. X*** /tmp/da10703    Tue Jun  1 16:03:38 1993
  1752. X--- include/winX.h    Tue Apr 27 17:00:20 1993
  1753. X***************
  1754. X*** 1,4 ****
  1755. X! /*    SCCS Id: @(#)winX.h    3.1    93/01/22          */
  1756. X  /* Copyright (c) Dean Luick, 1992                  */
  1757. X  /* NetHack may be freely redistributed.  See license for details. */
  1758. X  
  1759. X--- 1,4 ----
  1760. X! /*    SCCS Id: @(#)winX.h    3.1    93/04/26          */
  1761. X  /* Copyright (c) Dean Luick, 1992                  */
  1762. X  /* NetHack may be freely redistributed.  See license for details. */
  1763. X  
  1764. X***************
  1765. X*** 331,335 ****
  1766. X--- 331,337 ----
  1767. X  /* other defs that really should go away (they're tty specific) */
  1768. X  E void NDECL(X11_start_screen);
  1769. X  E void NDECL(X11_end_screen);
  1770. X+ 
  1771. X+ E void FDECL(genl_outrip, (winid,int));
  1772. X  
  1773. X  #endif /* WINX_H */
  1774. END_OF_FILE
  1775. if test 56326 -ne `wc -c <'patches02n'`; then
  1776.     echo shar: \"'patches02n'\" unpacked with wrong size!
  1777. fi
  1778. # end of 'patches02n'
  1779. if test -f 'sys/amiga/winkey.c' -a "${1}" != "-c" ; then 
  1780.   echo shar: Renaming existing file \"'sys/amiga/winkey.c'\" to \"'sys/amiga/winkey.c.orig'\"
  1781.   mv -f 'sys/amiga/winkey.c' 'sys/amiga/winkey.c.orig'
  1782. fi
  1783. echo shar: Extracting \"'sys/amiga/winkey.c'\" \(1946 characters\)
  1784. sed "s/^X//" >'sys/amiga/winkey.c' <<'END_OF_FILE'
  1785. X/*    SCCS Id: @(#)winkey.c    3.1    93/04/02 */
  1786. X/* Copyright (c) Gregg Wonderly, Naperville, Illinois,  1991,1992,1993. */
  1787. X/* NetHack may be freely redistributed.  See license for details. */
  1788. X
  1789. X#include "amiga:windefs.h"
  1790. X#include "amiga:winext.h"
  1791. X#include "amiga:winproto.h"
  1792. X
  1793. Xamii_nh_poskey(x, y, mod)
  1794. X    int*x, *y, *mod;
  1795. X{
  1796. X    struct amii_WinDesc *cw;
  1797. X    WETYPE type;
  1798. X    struct RastPort *rp;
  1799. X    struct Window *w;
  1800. X
  1801. X    if( cw = amii_wins[WIN_MESSAGE] )
  1802. X    {
  1803. X    cw->wflags &= ~FLMAP_SKIP;
  1804. X    if( scrollmsg )
  1805. X        cw->wflags |= FLMSG_FIRST;
  1806. X    cw->disprows = 0;
  1807. X    }
  1808. X
  1809. X    if( WIN_MAP != WIN_ERR && (cw = amii_wins[ WIN_MAP ]) && ( w = cw->win ) )
  1810. X    {
  1811. X    cursor_on( WIN_MAP );
  1812. X#ifdef    VIEWWINDOW
  1813. X    cursor_on( WIN_VIEW );
  1814. X#endif
  1815. X    }
  1816. X    else
  1817. X    panic( "no MAP window opened for nh_poskey\n" );
  1818. X
  1819. X    rp = w->RPort;
  1820. X
  1821. X    while( 1 )
  1822. X    {
  1823. X    type = WindowGetevent( );
  1824. X    if( type == WEMOUSE )
  1825. X    {
  1826. X        *mod = CLICK_1;
  1827. X        if( lastevent.un.mouse.qual )
  1828. X        *mod = 0;
  1829. X
  1830. X        /* X coordinates are 1 based, Y are zero based. */
  1831. X        *x = ( (lastevent.un.mouse.x - w->BorderLeft) / MAPFTWIDTH ) + 1;
  1832. X        *y = ( ( lastevent.un.mouse.y - w->BorderTop - MAPFTBASELN ) /
  1833. X            MAPFTHEIGHT );
  1834. X        return( 0 );
  1835. X    }
  1836. X    else if( type == WEKEY )
  1837. X    {
  1838. X        lastevent.type = WEUNK;
  1839. X        return( lastevent.un.key );
  1840. X    }
  1841. X    }
  1842. X}
  1843. X
  1844. Xint
  1845. Xamii_nhgetch()
  1846. X{
  1847. X    int ch;
  1848. X    struct amii_WinDesc *cw=amii_wins[WIN_MESSAGE];
  1849. X
  1850. X    if( WIN_MAP != WIN_ERR && amii_wins[ WIN_MAP ] )
  1851. X    {
  1852. X    cursor_on( WIN_MAP );
  1853. X#ifdef    VIEWWINDOW
  1854. X    cursor_on( WIN_VIEW );
  1855. X#endif
  1856. X    }
  1857. X    if(cw)
  1858. X        cw->wflags &= ~FLMAP_SKIP;
  1859. X
  1860. X    ch = WindowGetchar();
  1861. X    return( ch );
  1862. X}
  1863. X
  1864. Xvoid
  1865. Xamii_get_nh_event()
  1866. X{
  1867. X    /* nothing now - later I have no idea.  Is this just a Mac hook? */
  1868. X}
  1869. X
  1870. Xvoid
  1871. Xamii_getret()
  1872. X{
  1873. X    register int c;
  1874. X
  1875. X    raw_print( "" );
  1876. X    raw_print( "Press Return..." );
  1877. X
  1878. X    c = 0;
  1879. X
  1880. X    while( c != '\n' && c != '\r' )
  1881. X    {
  1882. X    if( HackPort )
  1883. X        c = WindowGetchar();
  1884. X    else
  1885. X        c = getchar();
  1886. X    }
  1887. X    return;
  1888. X}
  1889. X
  1890. END_OF_FILE
  1891. if test 1946 -ne `wc -c <'sys/amiga/winkey.c'`; then
  1892.     echo shar: \"'sys/amiga/winkey.c'\" unpacked with wrong size!
  1893. fi
  1894. # end of 'sys/amiga/winkey.c'
  1895. echo shar: End of archive 5 \(of 33\).
  1896. cp /dev/null ark5isdone
  1897. MISSING=""
  1898. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 ; do
  1899.     if test ! -f ark${I}isdone ; then
  1900.     MISSING="${MISSING} ${I}"
  1901.     fi
  1902. done
  1903. if test "${MISSING}" = "" ; then
  1904.     echo You have unpacked all 33 archives.
  1905.     echo "Now execute ./patchit.sh"
  1906.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1907. else
  1908.     echo You still need to unpack the following archives:
  1909.     echo "        " ${MISSING}
  1910. fi
  1911. ##  End of shell archive.
  1912. exit 0
  1913.