Source:NetHack 3.6.3/include/patchlevel.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to patchlevel.h from the source code of NetHack 3.6.3. To link to a particular line, write [[Source:NetHack 3.6.3/include/patchlevel.h#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. /* NetHack 3.6	patchlevel.h	$NHDT-Date: 1557510467 2019/05/10 17:47:47 $  $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.127 $ */
2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3. /*-Copyright (c) Michael Allison, 2012. */
4. /* NetHack may be freely redistributed.  See license for details. */
5. 
6. /* NetHack 3.6.x */
7. #define VERSION_MAJOR 3
8. #define VERSION_MINOR 6
9. /*
10.  * PATCHLEVEL is updated for each release.
11.  */
12. #define PATCHLEVEL 3
13. /*
14.  * Incrementing EDITLEVEL can be used to force invalidation of old bones
15.  * and save files.
16.  */
17. #define EDITLEVEL 0
18. 
19. #define COPYRIGHT_BANNER_A "NetHack, Copyright 1985-2019"
20. #define COPYRIGHT_BANNER_B \
21.     "         By Stichting Mathematisch Centrum and M. Stephenson."
22. /* COPYRIGHT_BANNER_C is generated by makedefs into date.h */
23. #define COPYRIGHT_BANNER_D "         See license for details."
24. 
25. /*
26.  * If two or more successive releases have compatible data files, define
27.  * this with the version number of the oldest such release so that the
28.  * new release will accept old save and bones files.  The format is
29.  *      0xMMmmPPeeL
30.  * 0x = literal prefix "0x", MM = major version, mm = minor version,
31.  * PP = patch level, ee = edit level, L = literal suffix "L",
32.  * with all four numbers specified as two hexadecimal digits.
33.  */
34. #define VERSION_COMPATIBILITY 0x03060002L
35. 
36. /****************************************************************************/
37. /* Version 3.6.x */
38. 
39. /*  Patch 3, December 5, 2019
40.  *
41.  *  Fixed stale 'thrownobj' pointer for returning thrown aklys while engulfed
42.  *  Fixed uarmh null pointer dereference if a helm of opposite alignment came
43.  *     off due to being polymorphed
44.  *  Fixed 'object lost' panic when attempting to crawl of of the water during
45.  *     emergency disrobing/dropping
46.  *  Running now stops when moving over engravings so you can tell where they are
47.  *  Fixed detection of unseen/secret doors which failed to find monsters hiding
48.  *     under objects and failed to find monsters hiding at trap locations
49.  *  Ensured fatal status conditions made it to disclosure and/or dumplog
50.  *  Fixed "Bad fruit #N" warnings when saving bones with 'perm_invent' On
51.  *  Fixed it so yellow dragons don't have green breath
52.  *  Added several grammar corrections
53.  *  Improved recognition of deafness for several situations including the
54.  *     playing of musical instruments and bribing negotiations with demon lords
55.  *  Fixed ignoring of god's wrath when hero injured himself during altar kick 
56.  *  Fixed several cases where persistent inventory window was not updated
57.  *  Fixed temple priests or shopkeepers moving over other monsters
58.  *  Fixed a crash-causing bug when putting on levitation boots over a sink
59.  *  Ensured that thrown or kicked objects will end up in bones
60.  *  Made water go all the way to the edges of level on the Plane of Water
61.  *  Made clouds disrupt line of sight along the edges of the Plane of Air
62.  *  Improved and expanded usage of status highlighting percentage rules
63.  *  Added more than 15 improvements and fixes to the curses window port
64.  *  Added and documented significant changes to default directory choices for
65.  *    the Windows platform
66.  *  Improved the layout and display of the player selection dialog used on the
67.  *     Windows graphical implementation
68.  *  Improved performance of some tty versions by reducing the number of 
69.  *     function calls made from mapglyph
70.  *  Allowed the msdos implementation to build with curses and PDCurses
71.  *  Included over 100 other fixes and improvements as outlined in doc/fixes36.3
72.  */
73. 
74. /*  Patch 2, May 7, 2019
75.  *  
76.  *  Over 320 bug fixes including a couple of crash bug fixes as outlined in
77.  *      doc/fixes36.2
78.  *  More than 15 enhancements or improvements
79.  *  Ensuring that unix Makefiles do not rely on features unique to gnu make
80.  *  Improvements to hilite_status parsing in an effort to ensure that expected
81.  *      and sensible values ranges are more easily specified and accepted
82.  *  Performance optimizations for tty
83.  *  Windows console tty via use of a back buffer
84.  *  Mac OS X build improvements and inclusion of an Xcode project
85.  *  Adopted the community curses window port
86.  */
87. 
88. /*  Patch 1, April 27, 2018
89.  *
90.  *  Over four hundred and seventy bug fixes and improvements as outlined in
91.  *      doc/fixes36.1
92.  */
93. 
94. /*
95.  *  NetHack 3.6.0, December 7, 2015
96.  *
97.  *  Hundreds of bug fixes as outlined in doc/fixes36.0.
98.  *  Some code reorganization.
99.  *  Some new features.
100.  *  Variations of some community patches rolled in.
101.  */
102. 
103. /****************************************************************************/
104. /* Version 3.5.x */
105. 
106. /*  Version 3.5 was never officially released.
107.  */
108. 
109. /****************************************************************************/
110. /* Version 3.4.x */
111. 
112. /*  Patch 3, December 7, 2003
113.  *  Several dozen general bug fixes including at least one fatal bug
114.  *  Correct several inconsistencies
115.  *  Handle level completely filled with monsters better
116.  *  Performance enhancements for win32tty port on Windows 98 and Me
117.  *  win32gui player selection fixes
118.  *  X11 player selection fixes, one of which could be fatal
119.  *  Eliminated a gold-in-shop-container cheat
120.  *  Include bones file version compatibility info in options file
121.  */
122. 
123. /*  Patch 2, August 30, 2003
124.  *  Fix a fatal bug that caused a crash when applying figurine, candle, or
125.  *      bell that gets used up
126.  *  Fix a fatal bug that triggered a panic when your secondary weapon was
127.  *      cursed during bones file creation
128.  *  Several dozen general bug fixes
129.  *  Fixed some Gnome compilation problems on Redhat 7.2 and 8.0
130.  *  Fixed a problem in the util Makefile
131.  *  Use random() by default under linux instead of lrand48()
132.  *  win32 tty adjustments and support for loading alternative key handlers
133.  */
134. 
135. /*  Patch 1, February 22, 2003
136.  *  Fix a few fatal errors including one for reentering shops, one
137.  *     involving land mines and boulders/statues, one for delayed
138.  *     polymorph, and one from a chest trap exploding ball and chain
139.  *  Fix a buffer overflow that could lead to security problems
140.  *  Hundreds of general bug fixes
141.  *  Several message and other glitches corrected
142.  *  Travel command adjustments and ability to disable travel command
143.  *  message recall window extensions (by Christian Cooper)
144.  *  win32: some interface improvements
145.  *  unix: improved tile support
146.  *  gnome: some fixes, and some enhancements by Dylan Alex Simon
147.  *  winCE: Windows CE port included (by Alex Kompel)
148.  */
149. 
150. /*
151.  *  NetHack 3.4.0, March 20, 2002
152.  *
153.  *  Hundreds of general bug fixes including some for sliming, zapping,
154.  *conduct,
155.  *      and several more for riding
156.  *  Eliminated a few potentially fatal bugs including one for stone-to-flesh,
157.  *      trouble-fixing during prayer, riding down stairs while punished,
158.  *      polyd player demon summoning, throwing digging tools into shops, and
159.  *      a couple from having the vision system enabled at inappropriate times
160.  *  Corrected some incorrect calculations in final scoring
161.  *  Enhanced config file processing and alert to duplication of entries
162.  *  Player selection prompt enhancements for TTY and X11
163.  *  Objects merge in containers
164.  *  Wish for "nothing", and genocide "none" to preserve your conduct
165.  *  Changes to Wizard quest
166.  *  Added the travel command which works by mouse click or '_' command
167.  *  Config file BOULDER option to specify the symbol for displaying boulders
168.  *  Incorporate modified versions of several 3.3.1 patches that have been
169.  *      in circulation in the NetHack community
170.  *  New Gnomish Mines levels (courtesy Kelly Bailey)
171.  *  Mac: command-key shortcuts in the player selection dialog
172.  *  Amiga: screenmode requester, and several amiga specific bug fixes
173.  *  Win32 graphical port contributed by Alex Kompel is now included
174.  */
175. 
176. /* Version 3.4 */
177. 
178. /****************************************************************************/
179. /* Version 3.3.x */
180. 
181. /*  Patch 1, August 9, 2000
182.  *  Many, many general fixes, including a number for riding, twoweapon,
183.  *      and invisible monsters
184.  *  A security fix for a couple of potentially exploitable buffer overflows
185.  *      in previous versions
186.  *  Redo Ranger quest
187.  *  Introduction of differentiation between different causes of blindness
188.  *  Overhaul of warning
189.  *  Functionality restored to Amiga (courtesy Janne Salmijarvi) and Atari
190.  *      (courtesy Christian "Marvin" Bressler) ports
191.  *  Mac: multiple interface fixes
192.  *  win32: fixed bug that caused messages to stop displaying after escape
193.  *  tty: use ANSI color (AF) over standard color (Sf) when given the choice
194.  *  several ports: offer for player selection only choices consistent with
195.  *      those already made by config file/command line (e.g., only offer roles
196.  *      that are compatible with specified race)
197.  */
198. 
199. /*
200.  *  NetHack 3.3.0, December 10, 1999
201.  *
202.  *  Implement the differentiation of character class or role from the
203.  *  character race.
204.  *  Removal of the Elf class, in preference to the Elf as a race.
205.  *  Introduction of Dwarves, Elves, Gnomes and Orcs as distinct races in
206.  *  addition to the Human "norm".
207.  *  Addition of the Monk and Ranger classes.
208.  *  Integrate some of the features of several branch versions of the game,
209.  *  notably NetHack--, NHplus, SLASH, and Slash'em.
210.  *  Adopt "the wizard patch" spellcasting system.
211.  *  Support for the Qt widget set.
212.  *  Y2K fix: use 4 digit year values for the dates in the score file
213.  *  updated COPYRIGHT_BANNER_A to reflect year of release.
214.  *  Dozens of other bug fixes, and minor improvements.
215.  */
216. 
217. /* Version 3.3 */
218. 
219. /****************************************************************************/
220. /* Version 3.2.x */
221. 
222. /*  Patch 3, December 10, 1999
223.  *  Released simultaneously with 3.3.0 for the benefit of
224.  *  ports and platforms that were unable to get working
225.  *  versions of 3.3.0 ready prior to the year 2000. It
226.  *  consisted of just a few bug fixes and offered no new
227.  *  functionality changes over 3.2.2.
228.  *
229.  *  Y2K fix: use 4 digit year values for the dates in the score file
230.  *  updated COPYRIGHT_BANNER_A to reflect year of release
231.  *  Fatal Mac bug removed
232.  *  DOS Makefile problem removed
233.  *  several bugs that could potentially trigger crashes removed
234.  */
235. 
236. /*  Patch 2, December 10, 1996
237.  *  fix the `recover' utility
238.  *  fix priest/minion name overflow which could cause Astral Plane crashes
239.  *  avoid crash when hit by own thrown boomerang
240.  *    "     "    "   worn blindfold pushed off by applying cursed towel
241.  *  handle returning live Wizard correctly in deep dungeon levels
242.  *  don't occasionally display unseen areas of new levels during level change
243.  *  other minor display fixes
244.  *  fix several minor reason for death inconsistencies and shop bugs
245.  *  high dexterity doesn't guarantee that thrown eggs & potions will hit
246.  *
247.  *  Selected platform- or configuration-specific changes:
248.  *  Mac: update `mrecover'
249.  *  MSDOS: don't switch into tiles mode when resuming play on rogue level
250.  *  tty: support object class characters for 'I' command in menu mode
251.  *  Unix: work around several <curses.h> compilation problems
252.  *  X11: as tty above, plus implement tty-style count handling in menus;
253.  *      better window placement support for old window managers
254.  */
255. 
256. /*  Patch 1, May 28, 1996
257.  *  eliminate `#qualifications'; fix weapon proficiency handling for missiles
258.  *  keep Medusa from continuing to move after she's been killed by reflection
259.  *      of her own gaze (fixes relmon panic)
260.  *  make monsters a little smarter; assorted eating and chatting changes
261.  *  fix object amnesia for spellbooks; fix Nazgul's sleep gas attack
262.  *  fix bullwhip usage for case of having recently been in a trap
263.  *  egg hatching fixes, oil potion fixes, magic marker fixes
264.  *  support object class chars as selection accelerators for some menus
265.  *  stricter parsing of run-time options at startup time
266.  *  interactive setting of options via menu (courtesy Per Liboriussen)
267.  *
268.  *  Selected platform- or configuration-specific changes:
269.  *  Amiga: fix panic for tiles display in Gnomish mines
270.  *  BeOS: preliminary support for new BeBox platform; initially tty only
271.  *  DLB: avoid excessive fseek calls (major performance hit for MSDOS)
272.  *  HPUX: workaround for gcc-2.6.3 bug adversely affecting monster generation
273.  *  Mac: avoid MW 68K struct copy optimization bug which caused crashes;
274.  *      fix dragging of scrollbar; boost partitions to 2MB minimum
275.  *  MSDOS: wasn't safe to enter endgame for MFLOPPY configuration;
276.  *      fix re-entry into game after "!" (shell escape) + chdir + EXIT;
277.  *      F3/F4/F5 display interface swapping improvements;
278.  *      add support for preloading all tiles in protected mode environment
279.  *  TERMINFO: colors were wrong for some systems, such as Linux
280.  *  X11: display help files properly
281.  */
282. 
283. /*
284.  *  NetHack 3.2.0, April 11, 1996
285.  *  enhancements to the windowing systems including "tiles" or icons to
286.  *      visually represent monsters and objects (courtesy Warwick Allison)
287.  *  window based menu system introduced for inventory and selection
288.  *  moving light sources besides the player
289.  *  improved #untrap (courtesy Helge Hafting)
290.  *  spellcasting logic changes to balance spellcasting towards magic-using
291.  *      classes (courtesy Stephen White)
292.  *  many, many bug fixes and abuse eliminations
293.  */
294. 
295. /* Version 3.2 */
296. 
297. /****************************************************************************/
298. /* Version 3.1.x */
299. 
300. /*
301.  *  Patch 3, July 12, 1993
302.  *  further revise Mac windowing and extend to Think C (courtesy
303.  *      Barton House)
304.  *  fix confusing black/gray/white display on some MSDOS hardware
305.  *  remove fatal bugs dealing with horns of plenty and VMS bones levels,
306.  *      as well as more minor ones
307.  */
308. 
309. /*
310.  *  Patch 2, June 1, 1993
311.  *  add tty windowing to Mac and Amiga ports and revise native windowing
312.  *  allow direct screen I/O for MS-DOS versions instead of going through
313.  *      termcap routines (courtesy Michael Allison and Kevin Smolkowski)
314.  *  changes for NEC PC-9800 and various termcap.zip fixes by Yamamoto Keizo
315.  *  SYSV 386 music driver ported to 386BSD (courtesy Andrew Chernov) and
316.  *      SCO UNIX (courtesy Andreas Arens)
317.  *  enhanced pickup and disclosure options
318.  *  removed fatal bugs dealing with cursed bags of holding, renaming
319.  *      shopkeepers, objects falling through trapdoors on deep levels,
320.  *      and kicking embedded objects loose, and many more minor ones
321.  */
322. 
323. /*
324.  *  Patch 1, February 25, 1993
325.  *  add Windows NT console port (courtesy Michael Allison)
326.  *  polishing of Amiga, Mac, and X11 windowing
327.  *  fixing many small bugs, including the infamous 3.0 nurse relmon bug
328.  */
329. 
330. /*
331.  *  NetHack 3.1.0, January 25, 1993
332.  *  many, many changes and bugfixes -- some of the highlights include:
333.  *  display rewrite using line-of-sight vision
334.  *  general window interface, with the ability to use multiple interfaces
335.  *      in the same executable
336.  *  intelligent monsters
337.  *  enhanced dungeon mythology
338.  *  branching dungeons with more special levels, quest dungeons, and
339.  *      multi-level endgame
340.  *  more artifacts and more uses for artifacts
341.  *  generalization to multiple shops with damage repair
342.  *  X11 interface
343.  *  ability to recover crashed games
344.  *  full rewrite of Macintosh port
345.  *  Amiga splitter
346.  *  directory rearrangement (dat, doc, sys, win, util)
347.  */
348. 
349. /* Version 3.1 */
350. 
351. /****************************************************************************/
352. /* Version 3.0 */
353. 
354. /*
355.  *  Patch 10, February 5, 1991
356.  *  extend overlay manager to multiple files for easier binary distribution
357.  *  allow for more system and compiler variance
358.  *  remove more small insects
359.  */
360. 
361. /*
362.  *  Patch 9, June 26, 1990
363.  *  clear up some confusing documentation
364.  *  smooth some more rough edges in various ports
365.  *  and fix a couple more bugs
366.  */
367. 
368. /*
369.  *  Patch 8, June 3, 1990
370.  *  further debug and refine Macintosh port
371.  *  refine the overlay manager, rearrange the OVLx breakdown for better
372.  *      efficiency, rename the overlay macros, and split off the overlay
373.  *      instructions to Install.ovl
374.  *  introduce NEARDATA for better Amiga efficiency
375.  *  support for more VMS versions (courtesy Joshua Delahunty and Pat Rankin)
376.  *  more const fixes
377.  *  better support for common graphics (DEC VT and IBM)
378.  *  and a number of simple fixes and consistency extensions
379.  */
380. 
381. /*
382.  *  Patch 7, February 19, 1990
383.  *  refine overlay support to handle portions of .c files through OVLx
384.  *      (courtesy above plus Kevin Smolkowski)
385.  *  update and extend Amiga port and documentation (courtesy Richard Addison,
386.  *      Jochen Erwied, Mark Gooderum, Ken Lorber, Greg Olson, Mike Passaretti,
387.  *      and Gregg Wonderly)
388.  *  refine and extend Macintosh port and documentation (courtesy Johnny Lee,
389.  *      Kevin Sitze, Michael Sokolov, Andy Swanson, Jon Watte, and Tom West)
390.  *  refine VMS documentation
391.  *  continuing ANSIfication, this time of const usage
392.  *  teach '/' about differences within monster classes
393.  *  smarter eating code (yet again), death messages, and treatment of
394.  *      non-animal monsters, monster unconsciousness, and naming
395.  *  extended version command to give compilation options
396.  *  and the usual bug fixes and hole plugs
397.  */
398. 
399. /*
400.  *  Patch 6, November 19, 1989
401.  *  add overlay support for MS-DOS (courtesy Pierre Martineau, Stephen
402.  *      Spackman, and Norm Meluch)
403.  *  refine Macintosh port
404.  *  different door states show as different symbols (courtesy Ari Huttunen)
405.  *  smarter drawbridges (courtesy Kevin Darcy)
406.  *  add CLIPPING and split INFERNO off HARD
407.  *  further refine eating code wrt picking up and resumption
408.  *  make first few levels easier, by adding :x monsters and increasing initial
409.  *      attribute points and hitting probability
410.  *  teach '/' about configurable symbols
411.  */
412. 
413. /*
414.  *  Patch 5, October 15, 1989
415.  *  add support for Macintosh OS (courtesy Johnny Lee)
416.  *  fix annoying dependency loop via new color.h file
417.  *  allow interruption while eating -- general handling of partially eaten
418.  * food
419.  *  smarter treatment of iron balls (courtesy Kevin Darcy)
420.  *  a handful of other bug fixes
421.  */
422. 
423. /*
424.  *  Patch 4, September 27, 1989
425.  *  add support for VMS (courtesy David Gentzel)
426.  *  move monster-on-floor references into functions and implement the new
427.  *      lookup structure for both objects and monsters
428.  *  extend the definitions of objects and monsters to provide "living color"
429.  *      in the dungeon, instead of a single monster color
430.  *  ifdef varargs usage to satisfy ANSI compilers
431.  *  standardize on the color 'gray'
432.  *  assorted bug fixes
433.  */
434. 
435. /*
436.  *  Patch 3, September 6, 1989
437.  *  add war hammers and revise object prices
438.  *  extend prototypes to ANSI compilers in addition to the previous MSDOS ones
439.  *  move object-on-floor references into functions in preparation for planned
440.  *      data structures to allow faster access and better colors
441.  *  fix some more bugs, and extend the portability of things added in earlier
442.  *      patches
443.  */
444. 
445. /*
446.  *  Patch 2, August 16, 1989
447.  *  add support for OS/2 (courtesy Timo Hakulinen)
448.  *  add a better makefile for MicroSoft C (courtesy Paul Gyugyi)
449.  *  more accommodation of compilers and preprocessors
450.  *  add better screen-size sensing
451.  *  expand color use for PCs and introduce it for SVR3 UNIX machines
452.  *  extend '/' to multiple identifications
453.  *  allow meta key to be used to invoke extended commands
454.  *  fix various minor bugs, and do further code cleaning
455.  */
456. 
457. /*
458.  *  Patch 1, July 31, 1989
459.  *  add support for Atari TOS (courtesy Eric Smith) and Andrew File System
460.  *      (courtesy Ralf Brown)
461.  *  include the uuencoded version of termcap.arc for the MSDOS versions that
462.  *      was included with 2.2 and 2.3
463.  *  make a number of simple changes to accommodate various compilers
464.  *  fix a handful of bugs, and do some code cleaning elsewhere
465.  *  add more instructions for new environments and things commonly done wrong
466.  */
467. 
468. /*
469.  *  NetHack 3.0 baseline release, July, 1989
470.  */
471. 
472. /* Version 3.0 */
473. 
474. /****************************************************************************/
475. 
476. /*patchlevel.h*/