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