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