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