home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part11
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 7a 65 70 68 |Path: uu|net!zeph|
|00000010| 79 72 2e 65 6e 73 2e 74 | 65 6b 2e 63 6f 6d 21 74 |yr.ens.t|ek.com!t|
|00000020| 65 6b 72 65 64 21 73 61 | 61 62 21 62 69 6c 6c 72 |ekred!sa|ab!billr|
|00000030| 0a 46 72 6f 6d 3a 20 62 | 69 6c 6c 72 40 73 61 61 |.From: b|illr@saa|
|00000040| 62 2e 43 4e 41 2e 54 45 | 4b 2e 43 4f 4d 20 28 42 |b.CNA.TE|K.COM (B|
|00000050| 69 6c 6c 20 52 61 6e 64 | 6c 65 29 0a 4e 65 77 73 |ill Rand|le).News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000070| 72 63 65 73 2e 67 61 6d | 65 73 0a 53 75 62 6a 65 |rces.gam|es.Subje|
|00000080| 63 74 3a 20 76 30 39 69 | 30 36 36 3a 20 20 75 6d |ct: v09i|066: um|
|00000090| 6f 72 69 61 33 20 2d 20 | 73 69 6e 67 6c 65 20 70 |oria3 - |single p|
|000000a0| 6c 61 79 65 72 20 64 75 | 6e 67 65 6f 6e 20 73 69 |layer du|ngeon si|
|000000b0| 6d 75 6c 61 74 69 6f 6e | 20 28 76 65 72 2e 20 35 |mulation| (ver. 5|
|000000c0| 2e 32 29 2c 20 50 61 72 | 74 31 31 2f 33 31 0a 4d |.2), Par|t11/31.M|
|000000d0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 35 35 39 37 |essage-I|D: <5597|
|000000e0| 40 74 65 6b 72 65 64 2e | 43 4e 41 2e 54 45 4b 2e |@tekred.|CNA.TEK.|
|000000f0| 43 4f 4d 3e 0a 44 61 74 | 65 3a 20 31 36 20 4d 61 |COM>.Dat|e: 16 Ma|
|00000100| 79 20 39 30 20 31 39 3a | 31 35 3a 35 32 20 47 4d |y 90 19:|15:52 GM|
|00000110| 54 0a 53 65 6e 64 65 72 | 3a 20 6e 65 77 73 40 74 |T.Sender|: news@t|
|00000120| 65 6b 72 65 64 2e 43 4e | 41 2e 54 45 4b 2e 43 4f |ekred.CN|A.TEK.CO|
|00000130| 4d 0a 4c 69 6e 65 73 3a | 20 32 33 36 34 0a 41 70 |M.Lines:| 2364.Ap|
|00000140| 70 72 6f 76 65 64 3a 20 | 62 69 6c 6c 72 40 73 61 |proved: |billr@sa|
|00000150| 61 62 2e 43 4e 41 2e 54 | 45 4b 2e 43 4f 4d 0a 0a |ab.CNA.T|EK.COM..|
|00000160| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 77 69 |Submitte|d-by: wi|
|00000170| 6c 73 6f 6e 40 65 72 6e | 69 65 2e 42 65 72 6b 65 |lson@ern|ie.Berke|
|00000180| 6c 65 79 2e 45 44 55 20 | 28 4a 69 6d 20 57 69 6c |ley.EDU |(Jim Wil|
|00000190| 73 6f 6e 29 0a 50 6f 73 | 74 69 6e 67 2d 6e 75 6d |son).Pos|ting-num|
|000001a0| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 39 2c 20 49 |ber: Vol|ume 9, I|
|000001b0| 73 73 75 65 20 36 36 0a | 41 72 63 68 69 76 65 2d |ssue 66.|Archive-|
|000001c0| 6e 61 6d 65 3a 20 75 6d | 6f 72 69 61 33 2f 50 61 |name: um|oria3/Pa|
|000001d0| 72 74 31 31 0a 53 75 70 | 65 72 73 65 64 65 73 3a |rt11.Sup|ersedes:|
|000001e0| 20 75 6d 6f 72 69 61 32 | 3a 20 56 6f 6c 75 6d 65 | umoria2|: Volume|
|000001f0| 20 35 2c 20 49 73 73 75 | 65 20 33 32 2d 33 37 2c | 5, Issu|e 32-37,|
|00000200| 34 31 2d 35 32 2c 38 37 | 0a 0a 0a 0a 23 21 20 2f |41-52,87|....#! /|
|00000210| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000220| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|00000230| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|00000240| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|00000250| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|00000260| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|00000270| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|00000280| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|00000290| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|000002a0| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|000002b0| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|000002c0| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|000002d0| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|000002e0| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|000002f0| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|00000300| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000310| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000320| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000330| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|00000340| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|00000350| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|00000360| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|00000370| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|00000380| 20 31 31 20 28 6f 66 20 | 33 31 29 2e 22 0a 23 20 | 11 (of |31).".# |
|00000390| 43 6f 6e 74 65 6e 74 73 | 3a 20 20 73 68 6f 72 74 |Contents|: short|
|000003a0| 6e 61 6d 2e 73 65 64 20 | 73 6f 75 72 63 65 2f 6d |nam.sed |source/m|
|000003b0| 69 73 63 31 2e 63 0a 23 | 20 57 72 61 70 70 65 64 |isc1.c.#| Wrapped|
|000003c0| 20 62 79 20 62 69 6c 6c | 72 40 73 61 61 62 20 6f | by bill|r@saab o|
|000003d0| 6e 20 57 65 64 20 4d 61 | 79 20 31 36 20 31 31 3a |n Wed Ma|y 16 11:|
|000003e0| 35 34 3a 32 32 20 31 39 | 39 30 0a 50 41 54 48 3d |54:22 19|90.PATH=|
|000003f0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|00000400| 73 72 2f 75 63 62 20 3b | 20 65 78 70 6f 72 74 20 |sr/ucb ;| export |
|00000410| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|00000420| 27 73 68 6f 72 74 6e 61 | 6d 2e 73 65 64 27 20 2d |'shortna|m.sed' -|
|00000430| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000440| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000450| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000460| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000470| 66 69 6c 65 20 5c 22 27 | 73 68 6f 72 74 6e 61 6d |file \"'|shortnam|
|00000480| 2e 73 65 64 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |.sed'\".|else.ech|
|00000490| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|000004a0| 6e 67 20 5c 22 27 73 68 | 6f 72 74 6e 61 6d 2e 73 |ng \"'sh|ortnam.s|
|000004b0| 65 64 27 5c 22 20 5c 28 | 31 31 30 31 37 20 63 68 |ed'\" \(|11017 ch|
|000004c0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000004d0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 73 68 6f 72 74 6e |s/^X//" |>'shortn|
|000004e0| 61 6d 2e 73 65 64 27 20 | 3c 3c 27 45 4e 44 5f 4f |am.sed' |<<'END_O|
|000004f0| 46 5f 46 49 4c 45 27 0a | 58 73 2f 43 4d 5f 43 41 |F_FILE'.|Xs/CM_CA|
|00000500| 52 52 59 5f 47 4f 4c 44 | 2f 41 43 4d 5f 43 41 52 |RRY_GOLD|/ACM_CAR|
|00000510| 52 59 5f 47 4f 4c 44 2f | 67 0a 58 73 2f 43 4d 5f |RY_GOLD/|g.Xs/CM_|
|00000520| 43 41 52 52 59 5f 4f 42 | 4a 2f 42 43 4d 5f 43 41 |CARRY_OB|J/BCM_CA|
|00000530| 52 52 59 5f 4f 42 4a 2f | 67 0a 58 73 2f 43 53 5f |RRY_OBJ/|g.Xs/CS_|
|00000540| 42 52 5f 46 49 52 45 2f | 41 43 53 5f 42 52 5f 46 |BR_FIRE/|ACS_BR_F|
|00000550| 49 52 45 2f 67 0a 58 73 | 2f 43 53 5f 42 52 5f 46 |IRE/g.Xs|/CS_BR_F|
|00000560| 52 4f 53 54 2f 42 43 53 | 5f 42 52 5f 46 52 4f 53 |ROST/BCS|_BR_FROS|
|00000570| 54 2f 67 0a 58 73 2f 43 | 53 5f 53 55 4d 4d 4f 4e |T/g.Xs/C|S_SUMMON|
|00000580| 5f 4d 4f 4e 2f 41 43 53 | 5f 53 55 4d 4d 4f 4e 5f |_MON/ACS|_SUMMON_|
|00000590| 4d 4f 4e 2f 67 0a 58 73 | 2f 43 53 5f 53 55 4d 4d |MON/g.Xs|/CS_SUMM|
|000005a0| 4f 4e 5f 55 4e 44 2f 42 | 43 53 5f 53 55 4d 4d 4f |ON_UND/B|CS_SUMMO|
|000005b0| 4e 5f 55 4e 44 2f 67 0a | 58 73 2f 43 53 5f 54 45 |N_UND/g.|Xs/CS_TE|
|000005c0| 4c 5f 4c 4f 4e 47 2f 41 | 43 53 5f 54 45 4c 5f 4c |L_LONG/A|CS_TEL_L|
|000005d0| 4f 4e 47 2f 67 0a 58 73 | 2f 43 53 5f 54 45 4c 5f |ONG/g.Xs|/CS_TEL_|
|000005e0| 53 48 4f 52 54 2f 42 43 | 53 5f 54 45 4c 5f 53 48 |SHORT/BC|S_TEL_SH|
|000005f0| 4f 52 54 2f 67 0a 58 73 | 2f 43 53 5f 54 45 4c 5f |ORT/g.Xs|/CS_TEL_|
|00000600| 54 4f 2f 43 43 53 5f 54 | 45 4c 5f 54 4f 2f 67 0a |TO/CCS_T|EL_TO/g.|
|00000610| 58 73 2f 43 55 52 5f 56 | 45 52 53 49 4f 4e 5f 4d |Xs/CUR_V|ERSION_M|
|00000620| 41 4a 2f 41 43 55 52 5f | 56 45 52 53 49 4f 4e 5f |AJ/ACUR_|VERSION_|
|00000630| 4d 41 4a 2f 67 0a 58 73 | 2f 43 55 52 5f 56 45 52 |MAJ/g.Xs|/CUR_VER|
|00000640| 53 49 4f 4e 5f 4d 49 4e | 2f 42 43 55 52 5f 56 45 |SION_MIN|/BCUR_VE|
|00000650| 52 53 49 4f 4e 5f 4d 49 | 4e 2f 67 0a 58 73 2f 44 |RSION_MI|N/g.Xs/D|
|00000660| 55 4e 5f 53 54 52 5f 44 | 45 4e 2f 41 44 55 4e 5f |UN_STR_D|EN/ADUN_|
|00000670| 53 54 52 5f 44 45 4e 2f | 67 0a 58 73 2f 44 55 4e |STR_DEN/|g.Xs/DUN|
|00000680| 5f 53 54 52 5f 4d 41 47 | 2f 42 44 55 4e 5f 53 54 |_STR_MAG|/BDUN_ST|
|00000690| 52 5f 4d 41 47 2f 67 0a | 58 73 2f 44 55 4e 5f 53 |R_MAG/g.|Xs/DUN_S|
|000006a0| 54 52 5f 4d 43 2f 43 44 | 55 4e 5f 53 54 52 5f 4d |TR_MC/CD|UN_STR_M|
|000006b0| 43 2f 67 0a 58 73 2f 44 | 55 4e 5f 53 54 52 5f 51 |C/g.Xs/D|UN_STR_Q|
|000006c0| 43 2f 44 44 55 4e 5f 53 | 54 52 5f 51 43 2f 67 0a |C/DDUN_S|TR_QC/g.|
|000006d0| 58 73 2f 44 55 4e 5f 53 | 54 52 5f 51 55 41 2f 45 |Xs/DUN_S|TR_QUA/E|
|000006e0| 44 55 4e 5f 53 54 52 5f | 51 55 41 2f 67 0a 58 73 |DUN_STR_|QUA/g.Xs|
|000006f0| 2f 44 55 4e 5f 53 54 52 | 5f 52 4e 47 2f 46 44 55 |/DUN_STR|_RNG/FDU|
|00000700| 4e 5f 53 54 52 5f 52 4e | 47 2f 67 0a 58 73 2f 44 |N_STR_RN|G/g.Xs/D|
|00000710| 55 4e 5f 54 55 4e 5f 43 | 48 47 2f 41 44 55 4e 5f |UN_TUN_C|HG/ADUN_|
|00000720| 54 55 4e 5f 43 48 47 2f | 67 0a 58 73 2f 44 55 4e |TUN_CHG/|g.Xs/DUN|
|00000730| 5f 54 55 4e 5f 43 4f 4e | 2f 42 44 55 4e 5f 54 55 |_TUN_CON|/BDUN_TU|
|00000740| 4e 5f 43 4f 4e 2f 67 0a | 58 73 2f 44 55 4e 5f 54 |N_CON/g.|Xs/DUN_T|
|00000750| 55 4e 5f 4a 43 54 2f 43 | 44 55 4e 5f 54 55 4e 5f |UN_JCT/C|DUN_TUN_|
|00000760| 4a 43 54 2f 67 0a 58 73 | 2f 44 55 4e 5f 54 55 4e |JCT/g.Xs|/DUN_TUN|
|00000770| 5f 50 45 4e 2f 44 44 55 | 4e 5f 54 55 4e 5f 50 45 |_PEN/DDU|N_TUN_PE|
|00000780| 4e 2f 67 0a 58 73 2f 44 | 55 4e 5f 54 55 4e 5f 52 |N/g.Xs/D|UN_TUN_R|
|00000790| 4e 44 2f 45 44 55 4e 5f | 54 55 4e 5f 52 4e 44 2f |ND/EDUN_|TUN_RND/|
|000007a0| 67 0a 58 73 2f 49 44 5f | 53 48 4f 57 5f 48 49 54 |g.Xs/ID_|SHOW_HIT|
|000007b0| 44 41 4d 2f 41 49 44 5f | 53 48 4f 57 5f 48 49 54 |DAM/AID_|SHOW_HIT|
|000007c0| 44 41 4d 2f 67 0a 58 73 | 2f 49 44 5f 53 48 4f 57 |DAM/g.Xs|/ID_SHOW|
|000007d0| 5f 50 31 2f 42 49 44 5f | 53 48 4f 57 5f 50 31 2f |_P1/BID_|SHOW_P1/|
|000007e0| 67 0a 58 73 2f 49 4e 56 | 45 4e 5f 41 52 4d 2f 41 |g.Xs/INV|EN_ARM/A|
|000007f0| 49 4e 56 45 4e 5f 41 52 | 4d 2f 67 0a 58 73 2f 49 |INVEN_AR|M/g.Xs/I|
|00000800| 4e 56 45 4e 5f 41 52 52 | 41 59 5f 53 49 5a 45 2f |NVEN_ARR|AY_SIZE/|
|00000810| 42 49 4e 56 45 4e 5f 41 | 52 52 41 59 5f 53 49 5a |BINVEN_A|RRAY_SIZ|
|00000820| 45 2f 67 0a 58 73 2f 49 | 4e 56 45 4e 5f 41 55 58 |E/g.Xs/I|NVEN_AUX|
|00000830| 2f 43 49 4e 56 45 4e 5f | 41 55 58 2f 67 0a 58 73 |/CINVEN_|AUX/g.Xs|
|00000840| 2f 49 4e 56 45 4e 5f 48 | 41 4e 44 53 2f 41 49 4e |/INVEN_H|ANDS/AIN|
|00000850| 56 45 4e 5f 48 41 4e 44 | 53 2f 67 0a 58 73 2f 49 |VEN_HAND|S/g.Xs/I|
|00000860| 4e 56 45 4e 5f 48 45 41 | 44 2f 42 49 4e 56 45 4e |NVEN_HEA|D/BINVEN|
|00000870| 5f 48 45 41 44 2f 67 0a | 58 73 2f 49 4e 56 45 4e |_HEAD/g.|Xs/INVEN|
|00000880| 5f 4c 45 46 54 2f 41 49 | 4e 56 45 4e 5f 4c 45 46 |_LEFT/AI|NVEN_LEF|
|00000890| 54 2f 67 0a 58 73 2f 49 | 4e 56 45 4e 5f 4c 49 47 |T/g.Xs/I|NVEN_LIG|
|000008a0| 48 54 2f 42 49 4e 56 45 | 4e 5f 4c 49 47 48 54 2f |HT/BINVE|N_LIGHT/|
|000008b0| 67 0a 58 73 2f 49 54 45 | 4d 5f 47 52 4f 55 50 5f |g.Xs/ITE|M_GROUP_|
|000008c0| 4d 41 58 2f 41 49 54 45 | 4d 5f 47 52 4f 55 50 5f |MAX/AITE|M_GROUP_|
|000008d0| 4d 41 58 2f 67 0a 58 73 | 2f 49 54 45 4d 5f 47 52 |MAX/g.Xs|/ITEM_GR|
|000008e0| 4f 55 50 5f 4d 49 4e 2f | 42 49 54 45 4d 5f 47 52 |OUP_MIN/|BITEM_GR|
|000008f0| 4f 55 50 5f 4d 49 4e 2f | 67 0a 58 73 2f 49 54 45 |OUP_MIN/|g.Xs/ITE|
|00000900| 4d 5f 4e 45 56 45 52 5f | 53 54 41 43 4b 5f 4d 41 |M_NEVER_|STACK_MA|
|00000910| 58 2f 41 49 54 45 4d 5f | 4e 45 56 45 52 5f 53 54 |X/AITEM_|NEVER_ST|
|00000920| 41 43 4b 5f 4d 41 58 2f | 67 0a 58 73 2f 49 54 45 |ACK_MAX/|g.Xs/ITE|
|00000930| 4d 5f 4e 45 56 45 52 5f | 53 54 41 43 4b 5f 4d 49 |M_NEVER_|STACK_MI|
|00000940| 4e 2f 42 49 54 45 4d 5f | 4e 45 56 45 52 5f 53 54 |N/BITEM_|NEVER_ST|
|00000950| 41 43 4b 5f 4d 49 4e 2f | 67 0a 58 73 2f 49 54 45 |ACK_MIN/|g.Xs/ITE|
|00000960| 4d 5f 53 49 4e 47 4c 45 | 5f 53 54 41 43 4b 5f 4d |M_SINGLE|_STACK_M|
|00000970| 41 58 2f 41 49 54 45 4d | 5f 53 49 4e 47 4c 45 5f |AX/AITEM|_SINGLE_|
|00000980| 53 54 41 43 4b 5f 4d 41 | 58 2f 67 0a 58 73 2f 49 |STACK_MA|X/g.Xs/I|
|00000990| 54 45 4d 5f 53 49 4e 47 | 4c 45 5f 53 54 41 43 4b |TEM_SING|LE_STACK|
|000009a0| 5f 4d 49 4e 2f 42 49 54 | 45 4d 5f 53 49 4e 47 4c |_MIN/BIT|EM_SINGL|
|000009b0| 45 5f 53 54 41 43 4b 5f | 4d 49 4e 2f 67 0a 58 73 |E_STACK_|MIN/g.Xs|
|000009c0| 2f 4d 41 58 5f 43 41 56 | 45 5f 46 4c 4f 4f 52 2f |/MAX_CAV|E_FLOOR/|
|000009d0| 41 4d 41 58 5f 43 41 56 | 45 5f 46 4c 4f 4f 52 2f |AMAX_CAV|E_FLOOR/|
|000009e0| 67 0a 58 73 2f 4d 41 58 | 5f 43 41 56 45 5f 52 4f |g.Xs/MAX|_CAVE_RO|
|000009f0| 4f 4d 2f 42 4d 41 58 5f | 43 41 56 45 5f 52 4f 4f |OM/BMAX_|CAVE_ROO|
|00000a00| 4d 2f 67 0a 58 73 2f 4d | 41 58 5f 4d 41 4c 4c 4f |M/g.Xs/M|AX_MALLO|
|00000a10| 43 2f 41 4d 41 58 5f 4d | 41 4c 4c 4f 43 2f 67 0a |C/AMAX_M|ALLOC/g.|
|00000a20| 58 73 2f 41 4d 41 58 5f | 4d 41 4c 4c 4f 43 5f 43 |Xs/AMAX_|MALLOC_C|
|00000a30| 48 41 4e 43 45 2f 42 4d | 41 58 5f 4d 41 4c 4c 4f |HANCE/BM|AX_MALLO|
|00000a40| 43 5f 43 48 41 4e 43 45 | 2f 67 0a 58 73 2f 4d 41 |C_CHANCE|/g.Xs/MA|
|00000a50| 58 5f 4d 4f 4e 53 5f 4c | 45 56 45 4c 2f 41 4d 41 |X_MONS_L|EVEL/AMA|
|00000a60| 58 5f 4d 4f 4e 53 5f 4c | 45 56 45 4c 2f 67 0a 58 |X_MONS_L|EVEL/g.X|
|00000a70| 73 2f 4d 41 58 5f 4d 4f | 4e 5f 4d 55 4c 54 2f 42 |s/MAX_MO|N_MULT/B|
|00000a80| 4d 41 58 5f 4d 4f 4e 5f | 4d 55 4c 54 2f 67 0a 58 |MAX_MON_|MULT/g.X|
|00000a90| 73 2f 4d 41 58 5f 4d 4f | 4e 5f 4e 41 54 54 41 43 |s/MAX_MO|N_NATTAC|
|00000aa0| 4b 2f 43 4d 41 58 5f 4d | 4f 4e 5f 4e 41 54 54 41 |K/CMAX_M|ON_NATTA|
|00000ab0| 43 4b 2f 67 0a 58 73 2f | 4d 41 58 5f 4f 42 4a 45 |CK/g.Xs/|MAX_OBJE|
|00000ac0| 43 54 53 2f 41 4d 41 58 | 5f 4f 42 4a 45 43 54 53 |CTS/AMAX|_OBJECTS|
|00000ad0| 2f 67 0a 58 73 2f 4d 41 | 58 5f 4f 42 4a 5f 4c 45 |/g.Xs/MA|X_OBJ_LE|
|00000ae0| 56 45 4c 2f 42 4d 41 58 | 5f 4f 42 4a 5f 4c 45 56 |VEL/BMAX|_OBJ_LEV|
|00000af0| 45 4c 2f 67 0a 58 73 2f | 4d 49 4e 5f 4d 41 4c 4c |EL/g.Xs/|MIN_MALL|
|00000b00| 4f 43 5f 4c 45 56 45 4c | 2f 41 4d 49 4e 5f 4d 41 |OC_LEVEL|/AMIN_MA|
|00000b10| 4c 4c 4f 43 5f 4c 45 56 | 45 4c 2f 67 0a 58 73 2f |LLOC_LEV|EL/g.Xs/|
|00000b20| 4d 49 4e 5f 4d 41 4c 4c | 4f 43 5f 54 44 2f 42 4d |MIN_MALL|OC_TD/BM|
|00000b30| 49 4e 5f 4d 41 4c 4c 4f | 43 5f 54 44 2f 67 0a 58 |IN_MALLO|C_TD/g.X|
|00000b40| 73 2f 4d 49 4e 5f 4d 41 | 4c 4c 4f 43 5f 54 4e 2f |s/MIN_MA|LLOC_TN/|
|00000b50| 43 4d 49 4e 5f 4d 41 4c | 4c 4f 43 5f 54 4e 2f 67 |CMIN_MAL|LOC_TN/g|
|00000b60| 0a 58 73 2f 4d 4f 52 49 | 41 5f 48 45 4c 50 2f 41 |.Xs/MORI|A_HELP/A|
|00000b70| 4d 4f 52 49 41 5f 48 45 | 4c 50 2f 67 0a 58 73 2f |MORIA_HE|LP/g.Xs/|
|00000b80| 4d 4f 52 49 41 5f 48 4f | 55 2f 42 4d 4f 52 49 41 |MORIA_HO|U/BMORIA|
|00000b90| 5f 48 4f 55 2f 67 0a 58 | 73 2f 4d 4f 52 49 41 5f |_HOU/g.X|s/MORIA_|
|00000ba0| 4f 52 49 47 5f 48 45 4c | 50 2f 41 4d 4f 52 49 41 |ORIG_HEL|P/AMORIA|
|00000bb0| 5f 4f 52 49 47 5f 48 45 | 4c 50 2f 67 0a 58 73 2f |_ORIG_HE|LP/g.Xs/|
|00000bc0| 4d 4f 52 49 41 5f 4f 57 | 49 5a 5f 48 45 4c 50 2f |MORIA_OW|IZ_HELP/|
|00000bd0| 42 4d 4f 52 49 41 5f 4f | 57 49 5a 5f 48 45 4c 50 |BMORIA_O|WIZ_HELP|
|00000be0| 2f 67 0a 58 73 2f 4d 4f | 52 49 41 5f 53 41 56 2f |/g.Xs/MO|RIA_SAV/|
|00000bf0| 41 4d 4f 52 49 41 5f 53 | 41 56 2f 67 0a 58 73 2f |AMORIA_S|AV/g.Xs/|
|00000c00| 41 4d 4f 52 49 41 5f 53 | 41 56 45 2f 42 4d 4f 52 |AMORIA_S|AVE/BMOR|
|00000c10| 49 41 5f 53 41 56 45 2f | 67 0a 58 73 2f 41 4d 4f |IA_SAVE/|g.Xs/AMO|
|00000c20| 52 49 41 5f 53 41 56 5f | 4e 41 4d 45 2f 43 4d 4f |RIA_SAV_|NAME/CMO|
|00000c30| 52 49 41 5f 53 41 56 5f | 4e 41 4d 45 2f 67 0a 58 |RIA_SAV_|NAME/g.X|
|00000c40| 73 2f 4d 4f 52 49 41 5f | 54 4f 50 2f 41 4d 4f 52 |s/MORIA_|TOP/AMOR|
|00000c50| 49 41 5f 54 4f 50 2f 67 | 0a 58 73 2f 41 4d 4f 52 |IA_TOP/g|.Xs/AMOR|
|00000c60| 49 41 5f 54 4f 50 5f 4e | 41 4d 45 2f 42 4d 4f 52 |IA_TOP_N|AME/BMOR|
|00000c70| 49 41 5f 54 4f 50 5f 4e | 41 4d 45 2f 67 0a 58 73 |IA_TOP_N|AME/g.Xs|
|00000c80| 2f 4d 4f 52 49 41 5f 57 | 45 4c 43 4f 4d 45 2f 41 |/MORIA_W|ELCOME/A|
|00000c90| 4d 4f 52 49 41 5f 57 45 | 4c 43 4f 4d 45 2f 67 0a |MORIA_WE|LCOME/g.|
|00000ca0| 58 73 2f 4d 4f 52 49 41 | 5f 57 49 5a 5f 48 45 4c |Xs/MORIA|_WIZ_HEL|
|00000cb0| 50 2f 42 4d 4f 52 49 41 | 5f 57 49 5a 5f 48 45 4c |P/BMORIA|_WIZ_HEL|
|00000cc0| 50 2f 67 0a 58 73 2f 4e | 4f 52 4d 41 4c 5f 54 41 |P/g.Xs/N|ORMAL_TA|
|00000cd0| 42 4c 45 5f 53 44 2f 41 | 4e 4f 52 4d 41 4c 5f 54 |BLE_SD/A|NORMAL_T|
|00000ce0| 41 42 4c 45 5f 53 44 2f | 67 0a 58 73 2f 4e 4f 52 |ABLE_SD/|g.Xs/NOR|
|00000cf0| 4d 41 4c 5f 54 41 42 4c | 45 5f 53 49 5a 45 2f 42 |MAL_TABL|E_SIZE/B|
|00000d00| 4e 4f 52 4d 41 4c 5f 54 | 41 42 4c 45 5f 53 49 5a |NORMAL_T|ABLE_SIZ|
|00000d10| 45 2f 67 0a 58 73 2f 4f | 42 4a 5f 42 41 53 45 5f |E/g.Xs/O|BJ_BASE_|
|00000d20| 4d 41 47 49 43 2f 41 4f | 42 4a 5f 42 41 53 45 5f |MAGIC/AO|BJ_BASE_|
|00000d30| 4d 41 47 49 43 2f 67 0a | 58 73 2f 4f 42 4a 5f 42 |MAGIC/g.|Xs/OBJ_B|
|00000d40| 41 53 45 5f 4d 41 58 2f | 42 4f 42 4a 5f 42 41 53 |ASE_MAX/|BOBJ_BAS|
|00000d50| 45 5f 4d 41 58 2f 67 0a | 58 73 2f 4f 42 4a 5f 44 |E_MAX/g.|Xs/OBJ_D|
|00000d60| 49 56 5f 43 55 52 53 45 | 44 2f 41 4f 42 4a 5f 44 |IV_CURSE|D/AOBJ_D|
|00000d70| 49 56 5f 43 55 52 53 45 | 44 2f 67 0a 58 73 2f 4f |IV_CURSE|D/g.Xs/O|
|00000d80| 42 4a 5f 44 49 56 5f 53 | 50 45 43 49 41 4c 2f 42 |BJ_DIV_S|PECIAL/B|
|00000d90| 4f 42 4a 5f 44 49 56 5f | 53 50 45 43 49 41 4c 2f |OBJ_DIV_|SPECIAL/|
|00000da0| 67 0a 58 73 2f 4f 42 4a | 5f 53 54 44 5f 41 44 4a |g.Xs/OBJ|_STD_ADJ|
|00000db0| 2f 41 4f 42 4a 5f 53 54 | 44 5f 41 44 4a 2f 67 0a |/AOBJ_ST|D_ADJ/g.|
|00000dc0| 58 73 2f 4f 42 4a 5f 53 | 54 44 5f 4d 49 4e 2f 42 |Xs/OBJ_S|TD_MIN/B|
|00000dd0| 4f 42 4a 5f 53 54 44 5f | 4d 49 4e 2f 67 0a 58 73 |OBJ_STD_|MIN/g.Xs|
|00000de0| 2f 50 4c 41 59 45 52 5f | 45 58 49 54 5f 50 41 55 |/PLAYER_|EXIT_PAU|
|00000df0| 53 45 2f 41 50 4c 41 59 | 45 52 5f 45 58 49 54 5f |SE/APLAY|ER_EXIT_|
|00000e00| 50 41 55 53 45 2f 67 0a | 58 73 2f 50 4c 41 59 45 |PAUSE/g.|Xs/PLAYE|
|00000e10| 52 5f 46 4f 4f 44 5f 41 | 4c 45 52 54 2f 42 50 4c |R_FOOD_A|LERT/BPL|
|00000e20| 41 59 45 52 5f 46 4f 4f | 44 5f 41 4c 45 52 54 2f |AYER_FOO|D_ALERT/|
|00000e30| 67 0a 58 73 2f 50 4c 41 | 59 45 52 5f 46 4f 4f 44 |g.Xs/PLA|YER_FOOD|
|00000e40| 5f 46 41 49 4e 54 2f 43 | 50 4c 41 59 45 52 5f 46 |_FAINT/C|PLAYER_F|
|00000e50| 4f 4f 44 5f 46 41 49 4e | 54 2f 67 0a 58 73 2f 50 |OOD_FAIN|T/g.Xs/P|
|00000e60| 4c 41 59 45 52 5f 46 4f | 4f 44 5f 46 55 4c 4c 2f |LAYER_FO|OD_FULL/|
|00000e70| 44 50 4c 41 59 45 52 5f | 46 4f 4f 44 5f 46 55 4c |DPLAYER_|FOOD_FUL|
|00000e80| 4c 2f 67 0a 58 73 2f 50 | 4c 41 59 45 52 5f 46 4f |L/g.Xs/P|LAYER_FO|
|00000e90| 4f 44 5f 4d 41 58 2f 45 | 50 4c 41 59 45 52 5f 46 |OD_MAX/E|PLAYER_F|
|00000ea0| 4f 4f 44 5f 4d 41 58 2f | 67 0a 58 73 2f 50 4c 41 |OOD_MAX/|g.Xs/PLA|
|00000eb0| 59 45 52 5f 46 4f 4f 44 | 5f 57 45 41 4b 2f 46 50 |YER_FOOD|_WEAK/FP|
|00000ec0| 4c 41 59 45 52 5f 46 4f | 4f 44 5f 57 45 41 4b 2f |LAYER_FO|OD_WEAK/|
|00000ed0| 67 0a 58 73 2f 50 4c 41 | 59 45 52 5f 52 45 47 45 |g.Xs/PLA|YER_REGE|
|00000ee0| 4e 5f 46 41 49 4e 54 2f | 47 50 4c 41 59 45 52 5f |N_FAINT/|GPLAYER_|
|00000ef0| 52 45 47 45 4e 5f 46 41 | 49 4e 54 2f 67 0a 58 73 |REGEN_FA|INT/g.Xs|
|00000f00| 2f 50 4c 41 59 45 52 5f | 52 45 47 45 4e 5f 48 50 |/PLAYER_|REGEN_HP|
|00000f10| 42 41 53 45 2f 48 50 4c | 41 59 45 52 5f 52 45 47 |BASE/HPL|AYER_REG|
|00000f20| 45 4e 5f 48 50 42 41 53 | 45 2f 67 0a 58 73 2f 50 |EN_HPBAS|E/g.Xs/P|
|00000f30| 4c 41 59 45 52 5f 52 45 | 47 45 4e 5f 4d 4e 42 41 |LAYER_RE|GEN_MNBA|
|00000f40| 53 45 2f 49 50 4c 41 59 | 45 52 5f 52 45 47 45 4e |SE/IPLAY|ER_REGEN|
|00000f50| 5f 4d 4e 42 41 53 45 2f | 67 0a 58 73 2f 50 4c 41 |_MNBASE/|g.Xs/PLA|
|00000f60| 59 45 52 5f 52 45 47 45 | 4e 5f 4e 4f 52 4d 41 4c |YER_REGE|N_NORMAL|
|00000f70| 2f 4a 50 4c 41 59 45 52 | 5f 52 45 47 45 4e 5f 4e |/JPLAYER|_REGEN_N|
|00000f80| 4f 52 4d 41 4c 2f 67 0a | 58 73 2f 50 4c 41 59 45 |ORMAL/g.|Xs/PLAYE|
|00000f90| 52 5f 52 45 47 45 4e 5f | 57 45 41 4b 2f 4b 50 4c |R_REGEN_|WEAK/KPL|
|00000fa0| 41 59 45 52 5f 52 45 47 | 45 4e 5f 57 45 41 4b 2f |AYER_REG|EN_WEAK/|
|00000fb0| 67 0a 58 73 2f 50 4c 41 | 59 45 52 5f 57 45 49 47 |g.Xs/PLA|YER_WEIG|
|00000fc0| 48 54 5f 43 41 50 2f 4c | 50 4c 41 59 45 52 5f 57 |HT_CAP/L|PLAYER_W|
|00000fd0| 45 49 47 48 54 5f 43 41 | 50 2f 67 0a 58 73 2f 53 |EIGHT_CA|P/g.Xs/S|
|00000fe0| 43 52 45 45 4e 5f 48 45 | 49 47 48 54 2f 41 53 43 |CREEN_HE|IGHT/ASC|
|00000ff0| 52 45 45 4e 5f 48 45 49 | 47 48 54 2f 67 0a 58 73 |REEN_HEI|GHT/g.Xs|
|00001000| 2f 53 43 52 45 45 4e 5f | 57 49 44 54 48 2f 42 53 |/SCREEN_|WIDTH/BS|
|00001010| 43 52 45 45 4e 5f 57 49 | 44 54 48 2f 67 0a 58 73 |CREEN_WI|DTH/g.Xs|
|00001020| 2f 53 4e 5f 53 4c 41 59 | 49 4e 47 2f 41 53 4e 5f |/SN_SLAY|ING/ASN_|
|00001030| 53 4c 41 59 49 4e 47 2f | 67 0a 58 73 2f 53 4e 5f |SLAYING/|g.Xs/SN_|
|00001040| 53 4c 41 59 5f 41 4e 49 | 4d 41 4c 2f 42 53 4e 5f |SLAY_ANI|MAL/BSN_|
|00001050| 53 4c 41 59 5f 41 4e 49 | 4d 41 4c 2f 67 0a 58 73 |SLAY_ANI|MAL/g.Xs|
|00001060| 2f 53 4e 5f 53 4c 41 59 | 5f 45 56 49 4c 2f 43 53 |/SN_SLAY|_EVIL/CS|
|00001070| 4e 5f 53 4c 41 59 5f 45 | 56 49 4c 2f 67 0a 58 73 |N_SLAY_E|VIL/g.Xs|
|00001080| 2f 53 4e 5f 53 4c 4f 57 | 4e 45 53 53 2f 41 53 4e |/SN_SLOW|NESS/ASN|
|00001090| 5f 53 4c 4f 57 4e 45 53 | 53 2f 67 0a 58 73 2f 53 |_SLOWNES|S/g.Xs/S|
|000010a0| 4e 5f 53 4c 4f 57 5f 44 | 45 53 43 45 4e 54 2f 42 |N_SLOW_D|ESCENT/B|
|000010b0| 53 4e 5f 53 4c 4f 57 5f | 44 45 53 43 45 4e 54 2f |SN_SLOW_|DESCENT/|
|000010c0| 67 0a 58 73 2f 53 54 4f | 52 45 5f 4d 41 58 5f 49 |g.Xs/STO|RE_MAX_I|
|000010d0| 4e 56 45 4e 2f 41 53 54 | 4f 52 45 5f 4d 41 58 5f |NVEN/AST|ORE_MAX_|
|000010e0| 49 4e 56 45 4e 2f 67 0a | 58 73 2f 53 54 4f 52 45 |INVEN/g.|Xs/STORE|
|000010f0| 5f 4d 49 4e 5f 49 4e 56 | 45 4e 2f 42 53 54 4f 52 |_MIN_INV|EN/BSTOR|
|00001100| 45 5f 4d 49 4e 5f 49 4e | 56 45 4e 2f 67 0a 58 73 |E_MIN_IN|VEN/g.Xs|
|00001110| 2f 54 52 5f 52 45 53 5f | 41 43 49 44 2f 41 54 52 |/TR_RES_|ACID/ATR|
|00001120| 5f 52 45 53 5f 41 43 49 | 44 2f 67 0a 58 73 2f 54 |_RES_ACI|D/g.Xs/T|
|00001130| 52 5f 52 45 53 5f 43 4f | 4c 44 2f 42 54 52 5f 52 |R_RES_CO|LD/BTR_R|
|00001140| 45 53 5f 43 4f 4c 44 2f | 67 0a 58 73 2f 54 52 5f |ES_COLD/|g.Xs/TR_|
|00001150| 52 45 53 5f 46 49 52 45 | 2f 43 54 52 5f 52 45 53 |RES_FIRE|/CTR_RES|
|00001160| 5f 46 49 52 45 2f 67 0a | 58 73 2f 54 52 5f 52 45 |_FIRE/g.|Xs/TR_RE|
|00001170| 53 5f 4c 49 47 48 54 2f | 44 54 52 5f 52 45 53 5f |S_LIGHT/|DTR_RES_|
|00001180| 4c 49 47 48 54 2f 67 0a | 58 73 2f 54 52 5f 53 4c |LIGHT/g.|Xs/TR_SL|
|00001190| 41 59 5f 41 4e 49 4d 41 | 4c 2f 41 54 52 5f 53 4c |AY_ANIMA|L/ATR_SL|
|000011a0| 41 59 5f 41 4e 49 4d 41 | 4c 2f 67 0a 58 73 2f 54 |AY_ANIMA|L/g.Xs/T|
|000011b0| 52 5f 53 4c 41 59 5f 44 | 52 41 47 4f 4e 2f 42 54 |R_SLAY_D|RAGON/BT|
|000011c0| 52 5f 53 4c 41 59 5f 44 | 52 41 47 4f 4e 2f 67 0a |R_SLAY_D|RAGON/g.|
|000011d0| 58 73 2f 54 52 5f 53 4c | 41 59 5f 45 56 49 4c 2f |Xs/TR_SL|AY_EVIL/|
|000011e0| 43 54 52 5f 53 4c 41 59 | 5f 45 56 49 4c 2f 67 0a |CTR_SLAY|_EVIL/g.|
|000011f0| 58 73 2f 54 52 5f 53 4c | 41 59 5f 55 4e 44 45 41 |Xs/TR_SL|AY_UNDEA|
|00001200| 44 2f 44 54 52 5f 53 4c | 41 59 5f 55 4e 44 45 41 |D/DTR_SL|AY_UNDEA|
|00001210| 44 2f 67 0a 58 73 2f 54 | 56 5f 4d 41 58 5f 45 4e |D/g.Xs/T|V_MAX_EN|
|00001220| 43 48 41 4e 54 2f 41 54 | 56 5f 4d 41 58 5f 45 4e |CHANT/AT|V_MAX_EN|
|00001230| 43 48 41 4e 54 2f 67 0a | 58 73 2f 54 56 5f 4d 41 |CHANT/g.|Xs/TV_MA|
|00001240| 58 5f 4f 42 4a 45 43 54 | 2f 42 54 56 5f 4d 41 58 |X_OBJECT|/BTV_MAX|
|00001250| 5f 4f 42 4a 45 43 54 2f | 67 0a 58 73 2f 54 56 5f |_OBJECT/|g.Xs/TV_|
|00001260| 4d 41 58 5f 50 49 43 4b | 5f 55 50 2f 43 54 56 5f |MAX_PICK|_UP/CTV_|
|00001270| 4d 41 58 5f 50 49 43 4b | 5f 55 50 2f 67 0a 58 73 |MAX_PICK|_UP/g.Xs|
|00001280| 2f 54 56 5f 4d 41 58 5f | 56 49 53 49 42 4c 45 2f |/TV_MAX_|VISIBLE/|
|00001290| 44 54 56 5f 4d 41 58 5f | 56 49 53 49 42 4c 45 2f |DTV_MAX_|VISIBLE/|
|000012a0| 67 0a 58 73 2f 54 56 5f | 4d 41 58 5f 57 45 41 52 |g.Xs/TV_|MAX_WEAR|
|000012b0| 2f 45 54 56 5f 4d 41 58 | 5f 57 45 41 52 2f 67 0a |/ETV_MAX|_WEAR/g.|
|000012c0| 58 73 2f 54 56 5f 4d 49 | 4e 5f 44 4f 4f 52 53 2f |Xs/TV_MI|N_DOORS/|
|000012d0| 41 54 56 5f 4d 49 4e 5f | 44 4f 4f 52 53 2f 67 0a |ATV_MIN_|DOORS/g.|
|000012e0| 58 73 2f 54 56 5f 4d 49 | 4e 5f 45 4e 43 48 41 4e |Xs/TV_MI|N_ENCHAN|
|000012f0| 54 2f 42 54 56 5f 4d 49 | 4e 5f 45 4e 43 48 41 4e |T/BTV_MI|N_ENCHAN|
|00001300| 54 2f 67 0a 58 73 2f 54 | 56 5f 4d 49 4e 5f 56 49 |T/g.Xs/T|V_MIN_VI|
|00001310| 53 49 42 4c 45 2f 43 54 | 56 5f 4d 49 4e 5f 56 49 |SIBLE/CT|V_MIN_VI|
|00001320| 53 49 42 4c 45 2f 67 0a | 58 73 2f 54 56 5f 4d 49 |SIBLE/g.|Xs/TV_MI|
|00001330| 4e 5f 57 45 41 52 2f 44 | 54 56 5f 4d 49 4e 5f 57 |N_WEAR/D|TV_MIN_W|
|00001340| 45 41 52 2f 67 0a 58 73 | 2f 54 56 5f 50 4f 54 49 |EAR/g.Xs|/TV_POTI|
|00001350| 4f 4e 31 2f 41 54 56 5f | 50 4f 54 49 4f 4e 31 2f |ON1/ATV_|POTION1/|
|00001360| 67 0a 58 73 2f 54 56 5f | 50 4f 54 49 4f 4e 32 2f |g.Xs/TV_|POTION2/|
|00001370| 42 54 56 5f 50 4f 54 49 | 4f 4e 32 2f 67 0a 58 73 |BTV_POTI|ON2/g.Xs|
|00001380| 2f 54 56 5f 53 43 52 4f | 4c 4c 31 2f 41 54 56 5f |/TV_SCRO|LL1/ATV_|
|00001390| 53 43 52 4f 4c 4c 31 2f | 67 0a 58 73 2f 54 56 5f |SCROLL1/|g.Xs/TV_|
|000013a0| 53 43 52 4f 4c 4c 32 2f | 42 54 56 5f 53 43 52 4f |SCROLL2/|BTV_SCRO|
|000013b0| 4c 4c 32 2f 67 0a 58 73 | 2f 57 49 4e 5f 4d 4f 4e |LL2/g.Xs|/WIN_MON|
|000013c0| 5f 41 50 50 45 41 52 2f | 41 57 49 4e 5f 4d 4f 4e |_APPEAR/|AWIN_MON|
|000013d0| 5f 41 50 50 45 41 52 2f | 67 0a 58 73 2f 57 49 4e |_APPEAR/|g.Xs/WIN|
|000013e0| 5f 4d 4f 4e 5f 54 4f 54 | 2f 42 57 49 4e 5f 4d 4f |_MON_TOT|/BWIN_MO|
|000013f0| 4e 5f 54 4f 54 2f 67 0a | 58 73 2f 61 67 67 72 61 |N_TOT/g.|Xs/aggra|
|00001400| 76 61 74 65 2f 41 61 67 | 67 72 61 76 61 74 65 2f |vate/Aag|gravate/|
|00001410| 67 0a 58 73 2f 41 61 67 | 67 72 61 76 61 74 65 5f |g.Xs/Aag|gravate_|
|00001420| 6d 6f 6e 73 74 65 72 2f | 42 61 67 67 72 61 76 61 |monster/|Baggrava|
|00001430| 74 65 5f 6d 6f 6e 73 74 | 65 72 2f 67 0a 58 73 2f |te_monst|er/g.Xs/|
|00001440| 61 74 74 61 63 6b 5f 62 | 6c 6f 77 73 2f 41 61 74 |attack_b|lows/Aat|
|00001450| 74 61 63 6b 5f 62 6c 6f | 77 73 2f 67 0a 58 73 2f |tack_blo|ws/g.Xs/|
|00001460| 61 74 74 61 63 6b 5f 64 | 65 73 63 2f 42 61 74 74 |attack_d|esc/Batt|
|00001470| 61 63 6b 5f 64 65 73 63 | 2f 67 0a 58 73 2f 61 74 |ack_desc|/g.Xs/at|
|00001480| 74 61 63 6b 5f 64 69 63 | 65 2f 43 61 74 74 61 63 |tack_dic|e/Cattac|
|00001490| 6b 5f 64 69 63 65 2f 67 | 0a 58 73 2f 61 74 74 61 |k_dice/g|.Xs/atta|
|000014a0| 63 6b 5f 73 69 64 65 73 | 2f 44 61 74 74 61 63 6b |ck_sides|/Dattack|
|000014b0| 5f 73 69 64 65 73 2f 67 | 0a 58 73 2f 61 74 74 61 |_sides/g|.Xs/atta|
|000014c0| 63 6b 5f 74 79 70 65 2f | 45 61 74 74 61 63 6b 5f |ck_type/|Eattack_|
|000014d0| 74 79 70 65 2f 67 0a 58 | 73 2f 62 61 63 6b 67 72 |type/g.X|s/backgr|
|000014e0| 6f 75 6e 64 2f 41 62 61 | 63 6b 67 72 6f 75 6e 64 |ound/Aba|ckground|
|000014f0| 2f 67 0a 58 73 2f 41 62 | 61 63 6b 67 72 6f 75 6e |/g.Xs/Ab|ackgroun|
|00001500| 64 5f 74 79 70 65 2f 42 | 62 61 63 6b 67 72 6f 75 |d_type/B|backgrou|
|00001510| 6e 64 5f 74 79 70 65 2f | 67 0a 58 73 2f 63 68 61 |nd_type/|g.Xs/cha|
|00001520| 6e 67 65 5f 63 68 61 72 | 61 63 74 65 72 2f 41 63 |nge_char|acter/Ac|
|00001530| 68 61 6e 67 65 5f 63 68 | 61 72 61 63 74 65 72 2f |hange_ch|aracter/|
|00001540| 67 0a 58 73 2f 63 68 61 | 6e 67 65 5f 6e 61 6d 65 |g.Xs/cha|nge_name|
|00001550| 2f 42 63 68 61 6e 67 65 | 5f 6e 61 6d 65 2f 67 0a |/Bchange|_name/g.|
|00001560| 58 73 2f 63 68 61 6e 67 | 65 5f 73 70 65 65 64 2f |Xs/chang|e_speed/|
|00001570| 43 63 68 61 6e 67 65 5f | 73 70 65 65 64 2f 67 0a |Cchange_|speed/g.|
|00001580| 58 73 2f 63 68 61 6e 67 | 65 5f 74 72 61 70 2f 44 |Xs/chang|e_trap/D|
|00001590| 63 68 61 6e 67 65 5f 74 | 72 61 70 2f 67 0a 58 73 |change_t|rap/g.Xs|
|000015a0| 2f 63 68 61 72 61 63 74 | 65 72 5f 67 65 6e 65 72 |/charact|er_gener|
|000015b0| 61 74 65 64 2f 41 63 68 | 61 72 61 63 74 65 72 5f |ated/Ach|aracter_|
|000015c0| 67 65 6e 65 72 61 74 65 | 64 2f 67 0a 58 73 2f 63 |generate|d/g.Xs/c|
|000015d0| 68 61 72 61 63 74 65 72 | 5f 73 61 76 65 64 2f 42 |haracter|_saved/B|
|000015e0| 63 68 61 72 61 63 74 65 | 72 5f 73 61 76 65 64 2f |characte|r_saved/|
|000015f0| 67 0a 58 73 2f 63 6f 6e | 66 75 73 65 5f 6d 6f 6e |g.Xs/con|fuse_mon|
|00001600| 73 74 65 72 2f 41 63 6f | 6e 66 75 73 65 5f 6d 6f |ster/Aco|nfuse_mo|
|00001610| 6e 73 74 65 72 2f 67 0a | 58 73 2f 63 6f 6e 66 75 |nster/g.|Xs/confu|
|00001620| 73 65 64 2f 42 63 6f 6e | 66 75 73 65 64 2f 67 0a |sed/Bcon|fused/g.|
|00001630| 58 73 2f 63 72 65 61 74 | 65 5f 63 68 61 72 61 63 |Xs/creat|e_charac|
|00001640| 74 65 72 2f 41 63 72 65 | 61 74 65 5f 63 68 61 72 |ter/Acre|ate_char|
|00001650| 61 63 74 65 72 2f 67 0a | 58 73 2f 63 72 65 61 74 |acter/g.|Xs/creat|
|00001660| 65 5f 66 6f 6f 64 2f 42 | 63 72 65 61 74 65 5f 66 |e_food/B|create_f|
|00001670| 6f 6f 64 2f 67 0a 58 73 | 2f 63 72 65 61 74 75 72 |ood/g.Xs|/creatur|
|00001680| 65 5f 74 79 70 65 2f 41 | 63 72 65 61 74 75 72 65 |e_type/A|creature|
|00001690| 5f 74 79 70 65 2f 67 0a | 58 73 2f 63 72 65 61 74 |_type/g.|Xs/creat|
|000016a0| 75 72 65 73 2f 42 63 72 | 65 61 74 75 72 65 73 2f |ures/Bcr|eatures/|
|000016b0| 67 0a 58 73 2f 64 65 66 | 61 75 6c 74 5f 64 69 72 |g.Xs/def|ault_dir|
|000016c0| 2f 41 64 65 66 61 75 6c | 74 5f 64 69 72 2f 67 0a |/Adefaul|t_dir/g.|
|000016d0| 58 73 2f 64 65 66 61 75 | 6c 74 5f 73 69 67 6e 61 |Xs/defau|lt_signa|
|000016e0| 6c 73 2f 42 64 65 66 61 | 75 6c 74 5f 73 69 67 6e |ls/Bdefa|ult_sign|
|000016f0| 61 6c 73 2f 67 0a 58 73 | 2f 64 65 6c 65 74 65 5f |als/g.Xs|/delete_|
|00001700| 6d 6f 6e 73 74 65 72 2f | 41 64 65 6c 65 74 65 5f |monster/|Adelete_|
|00001710| 6d 6f 6e 73 74 65 72 2f | 67 0a 58 73 2f 64 65 6c |monster/|g.Xs/del|
|00001720| 65 74 65 5f 6f 62 6a 65 | 63 74 2f 42 64 65 6c 65 |ete_obje|ct/Bdele|
|00001730| 74 65 5f 6f 62 6a 65 63 | 74 2f 67 0a 58 73 2f 64 |te_objec|t/g.Xs/d|
|00001740| 65 74 65 63 74 5f 65 76 | 69 6c 2f 41 64 65 74 65 |etect_ev|il/Adete|
|00001750| 63 74 5f 65 76 69 6c 2f | 67 0a 58 73 2f 64 65 74 |ct_evil/|g.Xs/det|
|00001760| 65 63 74 5f 69 6e 76 2f | 42 64 65 74 65 63 74 5f |ect_inv/|Bdetect_|
|00001770| 69 6e 76 2f 67 0a 58 73 | 2f 64 65 74 65 63 74 5f |inv/g.Xs|/detect_|
|00001780| 69 6e 76 32 2f 43 64 65 | 74 65 63 74 5f 69 6e 76 |inv2/Cde|tect_inv|
|00001790| 32 2f 67 0a 58 73 2f 64 | 65 74 65 63 74 5f 69 6e |2/g.Xs/d|etect_in|
|000017a0| 76 69 73 69 62 6c 65 2f | 44 64 65 74 65 63 74 5f |visible/|Ddetect_|
|000017b0| 69 6e 76 69 73 69 62 6c | 65 2f 67 0a 58 73 2f 64 |invisibl|e/g.Xs/d|
|000017c0| 65 74 65 63 74 5f 6d 6f | 6e 73 74 65 72 73 2f 45 |etect_mo|nsters/E|
|000017d0| 64 65 74 65 63 74 5f 6d | 6f 6e 73 74 65 72 73 2f |detect_m|onsters/|
|000017e0| 67 0a 58 73 2f 64 65 74 | 65 63 74 5f 6f 62 6a 65 |g.Xs/det|ect_obje|
|000017f0| 63 74 2f 46 64 65 74 65 | 63 74 5f 6f 62 6a 65 63 |ct/Fdete|ct_objec|
|00001800| 74 2f 67 0a 58 73 2f 64 | 65 74 65 63 74 5f 73 64 |t/g.Xs/d|etect_sd|
|00001810| 6f 6f 72 2f 47 64 65 74 | 65 63 74 5f 73 64 6f 6f |oor/Gdet|ect_sdoo|
|00001820| 72 2f 67 0a 58 73 2f 64 | 65 74 65 63 74 5f 74 72 |r/g.Xs/d|etect_tr|
|00001830| 61 70 2f 48 64 65 74 65 | 63 74 5f 74 72 61 70 2f |ap/Hdete|ct_trap/|
|00001840| 67 0a 58 73 2f 64 65 74 | 65 63 74 5f 74 72 65 61 |g.Xs/det|ect_trea|
|00001850| 73 75 72 65 2f 49 64 65 | 74 65 63 74 5f 74 72 65 |sure/Ide|tect_tre|
|00001860| 61 73 75 72 65 2f 67 0a | 58 73 2f 64 69 73 61 72 |asure/g.|Xs/disar|
|00001870| 6d 5f 61 6c 6c 2f 41 64 | 69 73 61 72 6d 5f 61 6c |m_all/Ad|isarm_al|
|00001880| 6c 2f 67 0a 58 73 2f 64 | 69 73 61 72 6d 5f 74 72 |l/g.Xs/d|isarm_tr|
|00001890| 61 70 2f 42 64 69 73 61 | 72 6d 5f 74 72 61 70 2f |ap/Bdisa|rm_trap/|
|000018a0| 67 0a 58 73 2f 69 6e 73 | 65 72 74 5f 6c 6e 75 6d |g.Xs/ins|ert_lnum|
|000018b0| 2f 41 69 6e 73 65 72 74 | 5f 6c 6e 75 6d 2f 67 0a |/Ainsert|_lnum/g.|
|000018c0| 58 73 2f 69 6e 73 65 72 | 74 5f 6e 75 6d 2f 42 69 |Xs/inser|t_num/Bi|
|000018d0| 6e 73 65 72 74 5f 6e 75 | 6d 2f 67 0a 58 73 2f 69 |nsert_nu|m/g.Xs/i|
|000018e0| 6e 73 65 72 74 5f 73 74 | 72 2f 43 69 6e 73 65 72 |nsert_st|r/Cinser|
|000018f0| 74 5f 73 74 72 2f 67 0a | 58 73 2f 69 6e 73 75 6c |t_str/g.|Xs/insul|
|00001900| 74 5f 63 75 72 2f 41 69 | 6e 73 75 6c 74 5f 63 75 |t_cur/Ai|nsult_cu|
|00001910| 72 2f 67 0a 58 73 2f 69 | 6e 73 75 6c 74 5f 6d 61 |r/g.Xs/i|nsult_ma|
|00001920| 78 2f 42 69 6e 73 75 6c | 74 5f 6d 61 78 2f 67 0a |x/Binsul|t_max/g.|
|00001930| 58 73 2f 69 6e 76 65 6e | 5f 63 61 72 72 79 2f 41 |Xs/inven|_carry/A|
|00001940| 69 6e 76 65 6e 5f 63 61 | 72 72 79 2f 67 0a 58 73 |inven_ca|rry/g.Xs|
|00001950| 2f 69 6e 76 65 6e 5f 63 | 68 65 63 6b 5f 6e 75 6d |/inven_c|heck_num|
|00001960| 2f 42 69 6e 76 65 6e 5f | 63 68 65 63 6b 5f 6e 75 |/Binven_|check_nu|
|00001970| 6d 2f 67 0a 58 73 2f 69 | 6e 76 65 6e 5f 63 68 65 |m/g.Xs/i|nven_che|
|00001980| 63 6b 5f 77 65 69 67 68 | 74 2f 43 69 6e 76 65 6e |ck_weigh|t/Cinven|
|00001990| 5f 63 68 65 63 6b 5f 77 | 65 69 67 68 74 2f 67 0a |_check_w|eight/g.|
|000019a0| 58 73 2f 69 6e 76 65 6e | 5f 63 6f 6d 6d 61 6e 64 |Xs/inven|_command|
|000019b0| 2f 44 69 6e 76 65 6e 5f | 63 6f 6d 6d 61 6e 64 2f |/Dinven_|command/|
|000019c0| 67 0a 58 73 2f 69 6e 76 | 65 6e 5f 63 74 72 2f 45 |g.Xs/inv|en_ctr/E|
|000019d0| 69 6e 76 65 6e 5f 63 74 | 72 2f 67 0a 58 73 2f 69 |inven_ct|r/g.Xs/i|
|000019e0| 6e 76 65 6e 5f 64 61 6d | 61 67 65 2f 41 69 6e 76 |nven_dam|age/Ainv|
|000019f0| 65 6e 5f 64 61 6d 61 67 | 65 2f 67 0a 58 73 2f 69 |en_damag|e/g.Xs/i|
|00001a00| 6e 76 65 6e 5f 64 65 73 | 74 72 6f 79 2f 42 69 6e |nven_des|troy/Bin|
|00001a10| 76 65 6e 5f 64 65 73 74 | 72 6f 79 2f 67 0a 58 73 |ven_dest|roy/g.Xs|
|00001a20| 2f 69 6e 76 65 6e 5f 64 | 72 6f 70 2f 43 69 6e 76 |/inven_d|rop/Cinv|
|00001a30| 65 6e 5f 64 72 6f 70 2f | 67 0a 58 73 2f 69 6e 76 |en_drop/|g.Xs/inv|
|00001a40| 65 6e 5f 74 68 72 6f 77 | 2f 41 69 6e 76 65 6e 5f |en_throw|/Ainven_|
|00001a50| 74 68 72 6f 77 2f 67 0a | 58 73 2f 69 6e 76 65 6e |throw/g.|Xs/inven|
|00001a60| 5f 74 79 70 65 2f 42 69 | 6e 76 65 6e 5f 74 79 70 |_type/Bi|nven_typ|
|00001a70| 65 2f 67 0a 58 73 2f 6c | 6f 67 5f 6d 61 78 5f 64 |e/g.Xs/l|og_max_d|
|00001a80| 6c 76 2f 41 6c 6f 67 5f | 6d 61 78 5f 64 6c 76 2f |lv/Alog_|max_dlv/|
|00001a90| 67 0a 58 73 2f 6c 6f 67 | 5f 6d 61 78 5f 65 78 70 |g.Xs/log|_max_exp|
|00001aa0| 2f 42 6c 6f 67 5f 6d 61 | 78 5f 65 78 70 2f 67 0a |/Blog_ma|x_exp/g.|
|00001ab0| 58 73 2f 6d 61 67 69 63 | 5f 73 68 6f 70 2f 41 6d |Xs/magic|_shop/Am|
|00001ac0| 61 67 69 63 5f 73 68 6f | 70 2f 67 0a 58 73 2f 6d |agic_sho|p/g.Xs/m|
|00001ad0| 61 67 69 63 5f 73 70 65 | 6c 6c 2f 42 6d 61 67 69 |agic_spe|ll/Bmagi|
|00001ae0| 63 5f 73 70 65 6c 6c 2f | 67 0a 58 73 2f 6d 61 78 |c_spell/|g.Xs/max|
|00001af0| 5f 70 61 6e 65 6c 5f 63 | 6f 6c 73 2f 41 6d 61 78 |_panel_c|ols/Amax|
|00001b00| 5f 70 61 6e 65 6c 5f 63 | 6f 6c 73 2f 67 0a 58 73 |_panel_c|ols/g.Xs|
|00001b10| 2f 6d 61 78 5f 70 61 6e | 65 6c 5f 72 6f 77 73 2f |/max_pan|el_rows/|
|00001b20| 42 6d 61 78 5f 70 61 6e | 65 6c 5f 72 6f 77 73 2f |Bmax_pan|el_rows/|
|00001b30| 67 0a 58 73 2f 6d 6f 6e | 73 74 65 72 5f 61 74 74 |g.Xs/mon|ster_att|
|00001b40| 61 63 6b 73 2f 41 6d 6f | 6e 73 74 65 72 5f 61 74 |acks/Amo|nster_at|
|00001b50| 74 61 63 6b 73 2f 67 0a | 58 73 2f 6d 6f 6e 73 74 |tacks/g.|Xs/monst|
|00001b60| 65 72 5f 64 65 61 74 68 | 2f 42 6d 6f 6e 73 74 65 |er_death|/Bmonste|
|00001b70| 72 5f 64 65 61 74 68 2f | 67 0a 58 73 2f 6d 6f 6e |r_death/|g.Xs/mon|
|00001b80| 73 74 65 72 5f 6e 61 6d | 65 2f 43 6d 6f 6e 73 74 |ster_nam|e/Cmonst|
|00001b90| 65 72 5f 6e 61 6d 65 2f | 67 0a 58 73 2f 6d 6f 6e |er_name/|g.Xs/mon|
|00001ba0| 73 74 65 72 5f 74 79 70 | 65 2f 44 6d 6f 6e 73 74 |ster_typ|e/Dmonst|
|00001bb0| 65 72 5f 74 79 70 65 2f | 67 0a 58 73 2f 6d 6f 76 |er_type/|g.Xs/mov|
|00001bc0| 65 5f 63 75 72 73 6f 72 | 2f 41 6d 6f 76 65 5f 63 |e_cursor|/Amove_c|
|00001bd0| 75 72 73 6f 72 2f 67 0a | 58 73 2f 41 6d 6f 76 65 |ursor/g.|Xs/Amove|
|00001be0| 5f 63 75 72 73 6f 72 5f | 72 65 6c 61 74 69 76 65 |_cursor_|relative|
|00001bf0| 2f 42 6d 6f 76 65 5f 63 | 75 72 73 6f 72 5f 72 65 |/Bmove_c|ursor_re|
|00001c00| 6c 61 74 69 76 65 2f 67 | 0a 58 73 2f 6d 73 64 6f |lative/g|.Xs/msdo|
|00001c10| 73 5f 69 6e 69 74 2f 41 | 6d 73 64 6f 73 5f 69 6e |s_init/A|msdos_in|
|00001c20| 69 74 2f 67 0a 58 73 2f | 6d 73 64 6f 73 5f 69 6e |it/g.Xs/|msdos_in|
|00001c30| 74 72 6f 2f 42 6d 73 64 | 6f 73 5f 69 6e 74 72 6f |tro/Bmsd|os_intro|
|00001c40| 2f 67 0a 58 73 2f 6e 65 | 78 74 5f 74 6f 5f 63 6f |/g.Xs/ne|xt_to_co|
|00001c50| 72 72 2f 41 6e 65 78 74 | 5f 74 6f 5f 63 6f 72 72 |rr/Anext|_to_corr|
|00001c60| 2f 67 0a 58 73 2f 6e 65 | 78 74 5f 74 6f 5f 77 61 |/g.Xs/ne|xt_to_wa|
|00001c70| 6c 6c 2f 42 6e 65 78 74 | 5f 74 6f 5f 77 61 6c 6c |ll/Bnext|_to_wall|
|00001c80| 2f 67 0a 58 73 2f 6e 65 | 78 74 5f 74 6f 5f 77 61 |/g.Xs/ne|xt_to_wa|
|00001c90| 6c 6c 73 2f 43 6e 65 78 | 74 5f 74 6f 5f 77 61 6c |lls/Cnex|t_to_wal|
|00001ca0| 6c 73 2f 67 0a 58 73 2f | 6f 62 6a 65 63 74 5f 69 |ls/g.Xs/|object_i|
|00001cb0| 64 65 6e 74 2f 41 6f 62 | 6a 65 63 74 5f 69 64 65 |dent/Aob|ject_ide|
|00001cc0| 6e 74 2f 67 0a 58 73 2f | 6f 62 6a 65 63 74 5f 6c |nt/g.Xs/|object_l|
|00001cd0| 69 73 74 2f 42 6f 62 6a | 65 63 74 5f 6c 69 73 74 |ist/Bobj|ect_list|
|00001ce0| 2f 67 0a 58 73 2f 70 61 | 6e 65 6c 5f 63 6f 6c 2f |/g.Xs/pa|nel_col/|
|00001cf0| 41 70 61 6e 65 6c 5f 63 | 6f 6c 2f 67 0a 58 73 2f |Apanel_c|ol/g.Xs/|
|00001d00| 41 70 61 6e 65 6c 5f 63 | 6f 6c 5f 6d 61 78 2f 42 |Apanel_c|ol_max/B|
|00001d10| 70 61 6e 65 6c 5f 63 6f | 6c 5f 6d 61 78 2f 67 0a |panel_co|l_max/g.|
|00001d20| 58 73 2f 41 70 61 6e 65 | 6c 5f 63 6f 6c 5f 6d 69 |Xs/Apane|l_col_mi|
|00001d30| 6e 2f 43 70 61 6e 65 6c | 5f 63 6f 6c 5f 6d 69 6e |n/Cpanel|_col_min|
|00001d40| 2f 67 0a 58 73 2f 41 70 | 61 6e 65 6c 5f 63 6f 6c |/g.Xs/Ap|anel_col|
|00001d50| 5f 70 72 74 2f 44 70 61 | 6e 65 6c 5f 63 6f 6c 5f |_prt/Dpa|nel_col_|
|00001d60| 70 72 74 2f 67 0a 58 73 | 2f 70 61 6e 65 6c 5f 63 |prt/g.Xs|/panel_c|
|00001d70| 6f 6e 74 61 69 6e 73 2f | 45 70 61 6e 65 6c 5f 63 |ontains/|Epanel_c|
|00001d80| 6f 6e 74 61 69 6e 73 2f | 67 0a 58 73 2f 70 61 6e |ontains/|g.Xs/pan|
|00001d90| 65 6c 5f 72 6f 77 2f 41 | 70 61 6e 65 6c 5f 72 6f |el_row/A|panel_ro|
|00001da0| 77 2f 67 0a 58 73 2f 41 | 70 61 6e 65 6c 5f 72 6f |w/g.Xs/A|panel_ro|
|00001db0| 77 5f 6d 61 78 2f 42 70 | 61 6e 65 6c 5f 72 6f 77 |w_max/Bp|anel_row|
|00001dc0| 5f 6d 61 78 2f 67 0a 58 | 73 2f 41 70 61 6e 65 6c |_max/g.X|s/Apanel|
|00001dd0| 5f 72 6f 77 5f 6d 69 6e | 2f 43 70 61 6e 65 6c 5f |_row_min|/Cpanel_|
|00001de0| 72 6f 77 5f 6d 69 6e 2f | 67 0a 58 73 2f 41 70 61 |row_min/|g.Xs/Apa|
|00001df0| 6e 65 6c 5f 72 6f 77 5f | 70 72 74 2f 44 70 61 6e |nel_row_|prt/Dpan|
|00001e00| 65 6c 5f 72 6f 77 5f 70 | 72 74 2f 67 0a 58 73 2f |el_row_p|rt/g.Xs/|
|00001e10| 70 6c 61 79 65 72 5f 65 | 78 70 2f 41 70 6c 61 79 |player_e|xp/Aplay|
|00001e20| 65 72 5f 65 78 70 2f 67 | 0a 58 73 2f 70 6c 61 79 |er_exp/g|.Xs/play|
|00001e30| 65 72 5f 68 70 2f 42 70 | 6c 61 79 65 72 5f 68 70 |er_hp/Bp|layer_hp|
|00001e40| 2f 67 0a 58 73 2f 70 6c | 61 79 65 72 5f 69 6e 69 |/g.Xs/pl|ayer_ini|
|00001e50| 74 2f 43 70 6c 61 79 65 | 72 5f 69 6e 69 74 2f 67 |t/Cplaye|r_init/g|
|00001e60| 0a 58 73 2f 70 6c 61 79 | 65 72 5f 6c 69 67 68 74 |.Xs/play|er_light|
|00001e70| 2f 44 70 6c 61 79 65 72 | 5f 6c 69 67 68 74 2f 67 |/Dplayer|_light/g|
|00001e80| 0a 58 73 2f 70 6c 61 79 | 65 72 5f 73 61 76 65 73 |.Xs/play|er_saves|
|00001e90| 2f 45 70 6c 61 79 65 72 | 5f 73 61 76 65 73 2f 67 |/Eplayer|_saves/g|
|00001ea0| 0a 58 73 2f 70 6c 61 79 | 65 72 5f 74 79 70 65 2f |.Xs/play|er_type/|
|00001eb0| 46 70 6c 61 79 65 72 5f | 74 79 70 65 2f 67 0a 58 |Fplayer_|type/g.X|
|00001ec0| 73 2f 70 72 6f 74 65 63 | 74 5f 65 76 69 6c 2f 41 |s/protec|t_evil/A|
|00001ed0| 70 72 6f 74 65 63 74 5f | 65 76 69 6c 2f 67 0a 58 |protect_|evil/g.X|
|00001ee0| 73 2f 70 72 6f 74 65 63 | 74 69 6f 6e 2f 42 70 72 |s/protec|tion/Bpr|
|00001ef0| 6f 74 65 63 74 69 6f 6e | 2f 67 0a 58 73 2f 70 72 |otection|/g.Xs/pr|
|00001f00| 74 5f 73 74 61 74 2f 41 | 70 72 74 5f 73 74 61 74 |t_stat/A|prt_stat|
|00001f10| 2f 67 0a 58 73 2f 41 70 | 72 74 5f 73 74 61 74 5f |/g.Xs/Ap|rt_stat_|
|00001f20| 62 6c 6f 63 6b 2f 42 70 | 72 74 5f 73 74 61 74 5f |block/Bp|rt_stat_|
|00001f30| 62 6c 6f 63 6b 2f 67 0a | 58 73 2f 41 70 72 74 5f |block/g.|Xs/Aprt_|
|00001f40| 73 74 61 74 65 2f 43 70 | 72 74 5f 73 74 61 74 65 |state/Cp|rt_state|
|00001f50| 2f 67 0a 58 73 2f 70 75 | 74 5f 6d 69 73 63 31 2f |/g.Xs/pu|t_misc1/|
|00001f60| 41 70 75 74 5f 6d 69 73 | 63 31 2f 67 0a 58 73 2f |Aput_mis|c1/g.Xs/|
|00001f70| 70 75 74 5f 6d 69 73 63 | 32 2f 42 70 75 74 5f 6d |put_misc|2/Bput_m|
|00001f80| 69 73 63 32 2f 67 0a 58 | 73 2f 70 75 74 5f 6d 69 |isc2/g.X|s/put_mi|
|00001f90| 73 63 33 2f 43 70 75 74 | 5f 6d 69 73 63 33 2f 67 |sc3/Cput|_misc3/g|
|00001fa0| 0a 58 73 2f 72 65 6d 6f | 76 65 5f 63 75 72 73 65 |.Xs/remo|ve_curse|
|00001fb0| 2f 41 72 65 6d 6f 76 65 | 5f 63 75 72 73 65 2f 67 |/Aremove|_curse/g|
|00001fc0| 0a 58 73 2f 72 65 6d 6f | 76 65 5f 66 65 61 72 2f |.Xs/remo|ve_fear/|
|00001fd0| 42 72 65 6d 6f 76 65 5f | 66 65 61 72 2f 67 0a 58 |Bremove_|fear/g.X|
|00001fe0| 73 2f 72 65 73 69 73 74 | 5f 63 6f 6c 64 2f 41 72 |s/resist|_cold/Ar|
|00001ff0| 65 73 69 73 74 5f 63 6f | 6c 64 2f 67 0a 58 73 2f |esist_co|ld/g.Xs/|
|00002000| 72 65 73 69 73 74 5f 68 | 65 61 74 2f 42 72 65 73 |resist_h|eat/Bres|
|00002010| 69 73 74 5f 68 65 61 74 | 2f 67 0a 58 73 2f 72 65 |ist_heat|/g.Xs/re|
|00002020| 73 74 6f 72 65 5f 6c 65 | 76 65 6c 2f 41 72 65 73 |store_le|vel/Ares|
|00002030| 74 6f 72 65 5f 6c 65 76 | 65 6c 2f 67 0a 58 73 2f |tore_lev|el/g.Xs/|
|00002040| 72 65 73 74 6f 72 65 5f | 73 63 72 65 65 6e 2f 42 |restore_|screen/B|
|00002050| 72 65 73 74 6f 72 65 5f | 73 63 72 65 65 6e 2f 67 |restore_|screen/g|
|00002060| 0a 58 73 2f 72 65 73 74 | 6f 72 65 5f 73 69 67 6e |.Xs/rest|ore_sign|
|00002070| 61 6c 73 2f 43 72 65 73 | 74 6f 72 65 5f 73 69 67 |als/Cres|tore_sig|
|00002080| 6e 61 6c 73 2f 67 0a 58 | 73 2f 72 65 73 74 6f 72 |nals/g.X|s/restor|
|00002090| 65 5f 74 65 72 6d 2f 44 | 72 65 73 74 6f 72 65 5f |e_term/D|restore_|
|000020a0| 74 65 72 6d 2f 67 0a 58 | 73 2f 73 63 72 65 65 6e |term/g.X|s/screen|
|000020b0| 5f 63 68 61 6e 67 65 2f | 41 73 63 72 65 65 6e 5f |_change/|Ascreen_|
|000020c0| 63 68 61 6e 67 65 2f 67 | 0a 58 73 2f 73 63 72 65 |change/g|.Xs/scre|
|000020d0| 65 6e 5f 6d 61 70 2f 42 | 73 63 72 65 65 6e 5f 6d |en_map/B|screen_m|
|000020e0| 61 70 2f 67 0a 58 73 2f | 73 65 61 72 63 68 5f 66 |ap/g.Xs/|search_f|
|000020f0| 6c 61 67 2f 41 73 65 61 | 72 63 68 5f 66 6c 61 67 |lag/Asea|rch_flag|
|00002100| 2f 67 0a 58 73 2f 73 65 | 61 72 63 68 5f 6f 66 66 |/g.Xs/se|arch_off|
|00002110| 2f 42 73 65 61 72 63 68 | 5f 6f 66 66 2f 67 0a 58 |/Bsearch|_off/g.X|
|00002120| 73 2f 73 65 61 72 63 68 | 5f 6f 6e 2f 43 73 65 61 |s/search|_on/Csea|
|00002130| 72 63 68 5f 6f 6e 2f 67 | 0a 58 73 2f 73 65 74 5f |rch_on/g|.Xs/set_|
|00002140| 61 63 69 64 5f 61 66 66 | 65 63 74 2f 41 73 65 74 |acid_aff|ect/Aset|
|00002150| 5f 61 63 69 64 5f 61 66 | 66 65 63 74 2f 67 0a 58 |_acid_af|fect/g.X|
|00002160| 73 2f 73 65 74 5f 61 63 | 69 64 5f 64 65 73 74 72 |s/set_ac|id_destr|
|00002170| 6f 79 2f 42 73 65 74 5f | 61 63 69 64 5f 64 65 73 |oy/Bset_|acid_des|
|00002180| 74 72 6f 79 2f 67 0a 58 | 73 2f 73 65 74 5f 63 6f |troy/g.X|s/set_co|
|00002190| 72 72 2f 41 73 65 74 5f | 63 6f 72 72 2f 67 0a 58 |rr/Aset_|corr/g.X|
|000021a0| 73 2f 41 73 65 74 5f 63 | 6f 72 72 6f 64 65 73 2f |s/Aset_c|orrodes/|
|000021b0| 42 73 65 74 5f 63 6f 72 | 72 6f 64 65 73 2f 67 0a |Bset_cor|rodes/g.|
|000021c0| 58 73 2f 73 6c 65 65 70 | 5f 6d 6f 6e 73 74 65 72 |Xs/sleep|_monster|
|000021d0| 2f 41 73 6c 65 65 70 5f | 6d 6f 6e 73 74 65 72 2f |/Asleep_|monster/|
|000021e0| 67 0a 58 73 2f 41 73 6c | 65 65 70 5f 6d 6f 6e 73 |g.Xs/Asl|eep_mons|
|000021f0| 74 65 72 73 31 2f 42 73 | 6c 65 65 70 5f 6d 6f 6e |ters1/Bs|leep_mon|
|00002200| 73 74 65 72 73 31 2f 67 | 0a 58 73 2f 41 73 6c 65 |sters1/g|.Xs/Asle|
|00002210| 65 70 5f 6d 6f 6e 73 74 | 65 72 73 32 2f 43 73 6c |ep_monst|ers2/Csl|
|00002220| 65 65 70 5f 6d 6f 6e 73 | 74 65 72 73 32 2f 67 0a |eep_mons|ters2/g.|
|00002230| 58 73 2f 73 70 65 65 64 | 5f 6d 6f 6e 73 74 65 72 |Xs/speed|_monster|
|00002240| 2f 41 73 70 65 65 64 5f | 6d 6f 6e 73 74 65 72 2f |/Aspeed_|monster/|
|00002250| 67 0a 58 73 2f 41 73 70 | 65 65 64 5f 6d 6f 6e 73 |g.Xs/Asp|eed_mons|
|00002260| 74 65 72 73 2f 42 73 70 | 65 65 64 5f 6d 6f 6e 73 |ters/Bsp|eed_mons|
|00002270| 74 65 72 73 2f 67 0a 58 | 73 2f 73 74 6f 72 65 5f |ters/g.X|s/store_|
|00002280| 62 6f 75 67 68 74 2f 41 | 73 74 6f 72 65 5f 62 6f |bought/A|store_bo|
|00002290| 75 67 68 74 2f 67 0a 58 | 73 2f 41 73 74 6f 72 65 |ught/g.X|s/Astore|
|000022a0| 5f 62 6f 75 67 68 74 5f | 70 2f 42 73 74 6f 72 65 |_bought_|p/Bstore|
|000022b0| 5f 62 6f 75 67 68 74 5f | 70 2f 67 0a 58 73 2f 73 |_bought_|p/g.Xs/s|
|000022c0| 74 6f 72 65 5f 62 75 79 | 2f 43 73 74 6f 72 65 5f |tore_buy|/Cstore_|
|000022d0| 62 75 79 2f 67 0a 58 73 | 2f 73 74 6f 72 65 5f 63 |buy/g.Xs|/store_c|
|000022e0| 61 72 72 79 2f 41 73 74 | 6f 72 65 5f 63 61 72 72 |arry/Ast|ore_carr|
|000022f0| 79 2f 67 0a 58 73 2f 73 | 74 6f 72 65 5f 63 68 65 |y/g.Xs/s|tore_che|
|00002300| 63 6b 5f 6e 75 6d 2f 42 | 73 74 6f 72 65 5f 63 68 |ck_num/B|store_ch|
|00002310| 65 63 6b 5f 6e 75 6d 2f | 67 0a 58 73 2f 73 74 6f |eck_num/|g.Xs/sto|
|00002320| 72 65 5f 63 68 6f 69 63 | 65 2f 43 73 74 6f 72 65 |re_choic|e/Cstore|
|00002330| 5f 63 68 6f 69 63 65 2f | 67 0a 58 73 2f 73 74 6f |_choice/|g.Xs/sto|
|00002340| 72 65 5f 63 74 72 2f 44 | 73 74 6f 72 65 5f 63 74 |re_ctr/D|store_ct|
|00002350| 72 2f 67 0a 58 73 2f 73 | 74 6f 72 65 5f 69 6e 69 |r/g.Xs/s|tore_ini|
|00002360| 74 2f 41 73 74 6f 72 65 | 5f 69 6e 69 74 2f 67 0a |t/Astore|_init/g.|
|00002370| 58 73 2f 73 74 6f 72 65 | 5f 69 6e 76 65 6e 2f 42 |Xs/store|_inven/B|
|00002380| 73 74 6f 72 65 5f 69 6e | 76 65 6e 2f 67 0a 58 73 |store_in|ven/g.Xs|
|00002390| 2f 73 75 6d 6d 6f 6e 5f | 6d 6f 6e 73 74 65 72 2f |/summon_|monster/|
|000023a0| 41 73 75 6d 6d 6f 6e 5f | 6d 6f 6e 73 74 65 72 2f |Asummon_|monster/|
|000023b0| 67 0a 58 73 2f 73 75 6d | 6d 6f 6e 5f 6f 62 6a 65 |g.Xs/sum|mon_obje|
|000023c0| 63 74 2f 42 73 75 6d 6d | 6f 6e 5f 6f 62 6a 65 63 |ct/Bsumm|on_objec|
|000023d0| 74 2f 67 0a 58 73 2f 73 | 75 6d 6d 6f 6e 5f 75 6e |t/g.Xs/s|ummon_un|
|000023e0| 64 65 61 64 2f 43 73 75 | 6d 6d 6f 6e 5f 75 6e 64 |dead/Csu|mmon_und|
|000023f0| 65 61 64 2f 67 0a 58 73 | 2f 73 75 73 74 61 69 6e |ead/g.Xs|/sustain|
|00002400| 5f 63 68 72 2f 41 73 75 | 73 74 61 69 6e 5f 63 68 |_chr/Asu|stain_ch|
|00002410| 72 2f 67 0a 58 73 2f 73 | 75 73 74 61 69 6e 5f 63 |r/g.Xs/s|ustain_c|
|00002420| 6f 6e 2f 42 73 75 73 74 | 61 69 6e 5f 63 6f 6e 2f |on/Bsust|ain_con/|
|00002430| 67 0a 58 73 2f 73 75 73 | 74 61 69 6e 5f 64 65 78 |g.Xs/sus|tain_dex|
|00002440| 2f 43 73 75 73 74 61 69 | 6e 5f 64 65 78 2f 67 0a |/Csustai|n_dex/g.|
|00002450| 58 73 2f 73 75 73 74 61 | 69 6e 5f 69 6e 74 2f 44 |Xs/susta|in_int/D|
|00002460| 73 75 73 74 61 69 6e 5f | 69 6e 74 2f 67 0a 58 73 |sustain_|int/g.Xs|
|00002470| 2f 73 75 73 74 61 69 6e | 5f 73 74 72 2f 45 73 75 |/sustain|_str/Esu|
|00002480| 73 74 61 69 6e 5f 73 74 | 72 2f 67 0a 58 73 2f 73 |stain_st|r/g.Xs/s|
|00002490| 75 73 74 61 69 6e 5f 77 | 69 73 2f 46 73 75 73 74 |ustain_w|is/Fsust|
|000024a0| 61 69 6e 5f 77 69 73 2f | 67 0a 58 73 2f 74 64 5f |ain_wis/|g.Xs/td_|
|000024b0| 64 65 73 74 72 6f 79 2f | 41 74 64 5f 64 65 73 74 |destroy/|Atd_dest|
|000024c0| 72 6f 79 2f 67 0a 58 73 | 2f 41 74 64 5f 64 65 73 |roy/g.Xs|/Atd_des|
|000024d0| 74 72 6f 79 32 2f 42 74 | 64 5f 64 65 73 74 72 6f |troy2/Bt|d_destro|
|000024e0| 79 32 2f 67 0a 58 73 2f | 74 65 6c 65 70 6f 72 74 |y2/g.Xs/|teleport|
|000024f0| 2f 41 74 65 6c 65 70 6f | 72 74 2f 67 0a 58 73 2f |/Atelepo|rt/g.Xs/|
|00002500| 41 74 65 6c 65 70 6f 72 | 74 5f 61 77 61 79 2f 42 |Atelepor|t_away/B|
|00002510| 74 65 6c 65 70 6f 72 74 | 5f 61 77 61 79 2f 67 0a |teleport|_away/g.|
|00002520| 58 73 2f 41 74 65 6c 65 | 70 6f 72 74 5f 66 6c 61 |Xs/Atele|port_fla|
|00002530| 67 2f 43 74 65 6c 65 70 | 6f 72 74 5f 66 6c 61 67 |g/Ctelep|ort_flag|
|00002540| 2f 67 0a 58 73 2f 41 74 | 65 6c 65 70 6f 72 74 5f |/g.Xs/At|eleport_|
|00002550| 6d 6f 6e 73 74 65 72 2f | 44 74 65 6c 65 70 6f 72 |monster/|Dtelepor|
|00002560| 74 5f 6d 6f 6e 73 74 65 | 72 2f 67 0a 58 73 2f 41 |t_monste|r/g.Xs/A|
|00002570| 74 65 6c 65 70 6f 72 74 | 5f 74 6f 2f 45 74 65 6c |teleport|_to/Etel|
|00002580| 65 70 6f 72 74 5f 74 6f | 2f 67 0a 58 73 2f 77 69 |eport_to|/g.Xs/wi|
|00002590| 7a 61 72 64 5f 63 72 65 | 61 74 65 2f 41 77 69 7a |zard_cre|ate/Awiz|
|000025a0| 61 72 64 5f 63 72 65 61 | 74 65 2f 67 0a 58 73 2f |ard_crea|te/g.Xs/|
|000025b0| 77 69 7a 61 72 64 5f 6c | 69 67 68 74 2f 42 77 69 |wizard_l|ight/Bwi|
|000025c0| 7a 61 72 64 5f 6c 69 67 | 68 74 2f 67 0a 58 73 2f |zard_lig|ht/g.Xs/|
|000025d0| 67 65 6e 65 72 61 74 65 | 5f 63 61 76 65 2f 42 67 |generate|_cave/Bg|
|000025e0| 65 6e 65 72 61 74 65 5f | 63 61 76 65 2f 67 0a 58 |enerate_|cave/g.X|
|000025f0| 73 2f 63 6f 6d 70 61 63 | 74 5f 6d 6f 6e 73 74 65 |s/compac|t_monste|
|00002600| 72 73 2f 41 63 6f 6d 70 | 61 63 74 5f 6d 6f 6e 73 |rs/Acomp|act_mons|
|00002610| 74 65 72 73 2f 67 0a 58 | 73 2f 63 6f 6d 70 61 63 |ters/g.X|s/compac|
|00002620| 74 5f 6f 62 6a 65 63 74 | 73 2f 42 63 6f 6d 70 61 |t_object|s/Bcompa|
|00002630| 63 74 5f 6f 62 6a 65 63 | 74 73 2f 67 0a 58 73 2f |ct_objec|ts/g.Xs/|
|00002640| 73 70 65 6c 6c 5f 63 68 | 6f 69 63 65 2f 41 73 70 |spell_ch|oice/Asp|
|00002650| 65 6c 6c 5f 63 68 6f 69 | 63 65 2f 67 0a 58 73 2f |ell_choi|ce/g.Xs/|
|00002660| 73 70 65 6c 6c 5f 74 79 | 70 65 2f 42 73 70 65 6c |spell_ty|pe/Bspel|
|00002670| 6c 5f 74 79 70 65 2f 67 | 0a 58 73 2f 73 70 65 6c |l_type/g|.Xs/spel|
|00002680| 6c 5f 6e 61 6d 65 73 2f | 43 73 70 65 6c 6c 5f 6e |l_names/|Cspell_n|
|00002690| 61 6d 65 73 2f 67 0a 58 | 73 2f 73 70 65 6c 6c 5f |ames/g.X|s/spell_|
|000026a0| 77 6f 72 6b 65 64 2f 44 | 73 70 65 6c 6c 5f 77 6f |worked/D|spell_wo|
|000026b0| 72 6b 65 64 2f 67 0a 58 | 73 2f 73 70 65 6c 6c 5f |rked/g.X|s/spell_|
|000026c0| 6f 72 64 65 72 2f 45 73 | 70 65 6c 6c 5f 6f 72 64 |order/Es|pell_ord|
|000026d0| 65 72 2f 67 0a 58 73 2f | 73 70 65 6c 6c 5f 63 68 |er/g.Xs/|spell_ch|
|000026e0| 61 6e 63 65 2f 46 73 70 | 65 6c 6c 5f 63 68 61 6e |ance/Fsp|ell_chan|
|000026f0| 63 65 2f 67 0a 58 73 2f | 73 70 65 6c 6c 5f 63 68 |ce/g.Xs/|spell_ch|
|00002700| 61 72 2f 47 73 70 65 6c | 6c 5f 63 68 61 72 2f 67 |ar/Gspel|l_char/g|
|00002710| 0a 58 73 2f 73 70 65 6c | 6c 5f 66 6f 72 67 6f 74 |.Xs/spel|l_forgot|
|00002720| 74 65 6e 2f 48 73 70 65 | 6c 6c 5f 66 6f 72 67 6f |ten/Hspe|ll_forgo|
|00002730| 74 74 65 6e 2f 67 0a 58 | 73 2f 73 70 65 6c 6c 5f |tten/g.X|s/spell_|
|00002740| 6c 65 61 72 6e 65 64 2f | 49 73 70 65 6c 6c 5f 6c |learned/|Ispell_l|
|00002750| 65 61 72 6e 65 64 2f 67 | 0a 58 73 2f 73 70 65 6c |earned/g|.Xs/spel|
|00002760| 6c 5f 77 6f 72 6b 65 64 | 2f 4a 73 70 65 6c 6c 5f |l_worked|/Jspell_|
|00002770| 77 6f 72 6b 65 64 2f 67 | 0a 58 73 2f 70 6c 61 63 |worked/g|.Xs/plac|
|00002780| 65 5f 6d 6f 6e 73 74 65 | 72 2f 41 70 6c 61 63 65 |e_monste|r/Aplace|
|00002790| 5f 6d 6f 6e 73 74 65 72 | 2f 67 0a 58 73 2f 70 6c |_monster|/g.Xs/pl|
|000027a0| 61 63 65 5f 62 6f 75 6e | 64 61 72 79 2f 42 70 6c |ace_boun|dary/Bpl|
|000027b0| 61 63 65 5f 62 6f 75 6e | 64 61 72 79 2f 67 0a 58 |ace_boun|dary/g.X|
|000027c0| 73 2f 70 6c 61 63 65 5f | 73 74 72 65 61 6d 65 72 |s/place_|streamer|
|000027d0| 2f 43 70 6c 61 63 65 5f | 73 74 72 65 61 6d 65 72 |/Cplace_|streamer|
|000027e0| 2f 67 0a 58 73 2f 70 6c | 61 63 65 5f 6f 70 65 6e |/g.Xs/pl|ace_open|
|000027f0| 5f 64 6f 6f 72 2f 44 70 | 6c 61 63 65 5f 6f 70 65 |_door/Dp|lace_ope|
|00002800| 6e 5f 64 6f 6f 72 2f 67 | 0a 58 73 2f 70 6c 61 63 |n_door/g|.Xs/plac|
|00002810| 65 5f 62 72 6f 6b 65 6e | 5f 64 6f 6f 72 2f 45 70 |e_broken|_door/Ep|
|00002820| 6c 61 63 65 5f 62 72 6f | 6b 65 6e 5f 64 6f 6f 72 |lace_bro|ken_door|
|00002830| 2f 67 0a 58 73 2f 70 6c | 61 63 65 5f 63 6c 6f 73 |/g.Xs/pl|ace_clos|
|00002840| 65 64 5f 64 6f 6f 72 2f | 46 70 6c 61 63 65 5f 63 |ed_door/|Fplace_c|
|00002850| 6c 6f 73 65 64 5f 64 6f | 6f 72 2f 67 0a 58 73 2f |losed_do|or/g.Xs/|
|00002860| 70 6c 61 63 65 5f 6c 6f | 63 6b 65 64 5f 64 6f 6f |place_lo|cked_doo|
|00002870| 72 2f 47 70 6c 61 63 65 | 5f 6c 6f 63 6b 65 64 5f |r/Gplace|_locked_|
|00002880| 64 6f 6f 72 2f 67 0a 58 | 73 2f 70 6c 61 63 65 5f |door/g.X|s/place_|
|00002890| 73 74 75 63 6b 5f 64 6f | 6f 72 2f 48 70 6c 61 63 |stuck_do|or/Hplac|
|000028a0| 65 5f 73 74 75 63 6b 5f | 64 6f 6f 72 2f 67 0a 58 |e_stuck_|door/g.X|
|000028b0| 73 2f 70 6c 61 63 65 5f | 73 65 63 72 65 74 5f 64 |s/place_|secret_d|
|000028c0| 6f 6f 72 2f 49 70 6c 61 | 63 65 5f 73 65 63 72 65 |oor/Ipla|ce_secre|
|000028d0| 74 5f 64 6f 6f 72 2f 67 | 0a 58 73 2f 70 6c 61 63 |t_door/g|.Xs/plac|
|000028e0| 65 5f 64 6f 6f 72 2f 4a | 70 6c 61 63 65 5f 64 6f |e_door/J|place_do|
|000028f0| 6f 72 2f 67 0a 58 73 2f | 70 6c 61 63 65 5f 75 70 |or/g.Xs/|place_up|
|00002900| 5f 73 74 61 69 72 73 2f | 4b 70 6c 61 63 65 5f 75 |_stairs/|Kplace_u|
|00002910| 70 5f 73 74 61 69 72 73 | 2f 67 0a 58 73 2f 70 6c |p_stairs|/g.Xs/pl|
|00002920| 61 63 65 5f 64 6f 77 6e | 5f 73 74 61 69 72 73 2f |ace_down|_stairs/|
|00002930| 4c 70 6c 61 63 65 5f 64 | 6f 77 6e 5f 73 74 61 69 |Lplace_d|own_stai|
|00002940| 72 73 2f 67 0a 58 73 2f | 70 6c 61 63 65 5f 73 74 |rs/g.Xs/|place_st|
|00002950| 61 69 72 73 2f 4d 70 6c | 61 63 65 5f 73 74 61 69 |airs/Mpl|ace_stai|
|00002960| 72 73 2f 67 0a 58 73 2f | 70 6c 61 63 65 5f 67 6f |rs/g.Xs/|place_go|
|00002970| 6c 64 2f 4e 70 6c 61 63 | 65 5f 67 6f 6c 64 2f 67 |ld/Nplac|e_gold/g|
|00002980| 0a 58 73 2f 70 6c 61 63 | 65 5f 74 72 61 70 2f 4f |.Xs/plac|e_trap/O|
|00002990| 70 6c 61 63 65 5f 74 72 | 61 70 2f 67 0a 58 73 2f |place_tr|ap/g.Xs/|
|000029a0| 70 6c 61 63 65 5f 6f 62 | 6a 65 63 74 2f 50 70 6c |place_ob|ject/Ppl|
|000029b0| 61 63 65 5f 6f 62 6a 65 | 63 74 2f 67 0a 58 73 2f |ace_obje|ct/g.Xs/|
|000029c0| 70 6c 61 63 65 5f 77 69 | 6e 5f 6d 6f 6e 73 74 65 |place_wi|n_monste|
|000029d0| 72 2f 51 70 6c 61 63 65 | 5f 77 69 6e 5f 6d 6f 6e |r/Qplace|_win_mon|
|000029e0| 73 74 65 72 2f 67 0a 58 | 73 2f 70 6c 61 63 65 5f |ster/g.X|s/place_|
|000029f0| 72 75 62 62 6c 65 2f 52 | 70 6c 61 63 65 5f 72 75 |rubble/R|place_ru|
|00002a00| 62 62 6c 65 2f 67 0a 58 | 73 2f 62 75 69 6c 64 5f |bble/g.X|s/build_|
|00002a10| 74 79 70 65 31 2f 41 62 | 75 69 6c 64 5f 74 79 70 |type1/Ab|uild_typ|
|00002a20| 65 31 2f 67 0a 58 73 2f | 62 75 69 6c 64 5f 74 79 |e1/g.Xs/|build_ty|
|00002a30| 70 65 32 2f 42 62 75 69 | 6c 64 5f 74 79 70 65 32 |pe2/Bbui|ld_type2|
|00002a40| 2f 67 0a 58 73 2f 62 75 | 69 6c 64 5f 74 79 70 65 |/g.Xs/bu|ild_type|
|00002a50| 33 2f 43 62 75 69 6c 64 | 5f 74 79 70 65 33 2f 67 |3/Cbuild|_type3/g|
|00002a60| 0a 58 73 2f 76 65 72 73 | 69 6f 6e 5f 6d 61 6a 2f |.Xs/vers|ion_maj/|
|00002a70| 41 76 65 72 73 69 6f 6e | 5f 6d 61 6a 2f 67 0a 58 |Aversion|_maj/g.X|
|00002a80| 73 2f 76 65 72 73 69 6f | 6e 5f 6d 69 6e 2f 42 76 |s/versio|n_min/Bv|
|00002a90| 65 72 73 69 6f 6e 5f 6d | 69 6e 2f 67 0a 58 73 2f |ersion_m|in/g.Xs/|
|00002aa0| 72 64 5f 73 68 6f 72 74 | 73 2f 41 72 64 5f 73 68 |rd_short|s/Ard_sh|
|00002ab0| 6f 72 74 73 2f 67 0a 58 | 73 2f 77 72 5f 73 68 6f |orts/g.X|s/wr_sho|
|00002ac0| 72 74 73 2f 41 77 72 5f | 73 68 6f 72 74 73 2f 67 |rts/Awr_|shorts/g|
|00002ad0| 0a 58 73 2f 70 75 72 63 | 68 61 73 65 5f 68 61 67 |.Xs/purc|hase_hag|
|00002ae0| 67 6c 65 2f 42 70 75 72 | 63 68 61 73 65 5f 68 61 |gle/Bpur|chase_ha|
|00002af0| 67 67 6c 65 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ggle/g.X|s/prt_co|
|00002b00| 6d 6d 65 6e 74 31 2f 41 | 70 72 74 5f 63 6f 6d 6d |mment1/A|prt_comm|
|00002b10| 65 6e 74 31 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ent1/g.X|s/prt_co|
|00002b20| 6d 6d 65 6e 74 32 2f 42 | 70 72 74 5f 63 6f 6d 6d |mment2/B|prt_comm|
|00002b30| 65 6e 74 32 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ent2/g.X|s/prt_co|
|00002b40| 6d 6d 65 6e 74 33 2f 43 | 70 72 74 5f 63 6f 6d 6d |mment3/C|prt_comm|
|00002b50| 65 6e 74 33 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ent3/g.X|s/prt_co|
|00002b60| 6d 6d 65 6e 74 34 2f 44 | 70 72 74 5f 63 6f 6d 6d |mment4/D|prt_comm|
|00002b70| 65 6e 74 34 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ent4/g.X|s/prt_co|
|00002b80| 6d 6d 65 6e 74 35 2f 45 | 70 72 74 5f 63 6f 6d 6d |mment5/E|prt_comm|
|00002b90| 65 6e 74 35 2f 67 0a 58 | 73 2f 70 72 74 5f 63 6f |ent5/g.X|s/prt_co|
|00002ba0| 6d 6d 65 6e 74 36 2f 46 | 70 72 74 5f 63 6f 6d 6d |mment6/F|prt_comm|
|00002bb0| 65 6e 74 36 2f 67 0a 58 | 73 2f 63 6f 6d 6d 65 6e |ent6/g.X|s/commen|
|00002bc0| 74 31 2f 41 63 6f 6d 6d | 65 6e 74 31 2f 67 0a 58 |t1/Acomm|ent1/g.X|
|00002bd0| 73 2f 63 6f 6d 6d 65 6e | 74 32 61 2f 42 63 6f 6d |s/commen|t2a/Bcom|
|00002be0| 6d 65 6e 74 32 61 2f 67 | 0a 58 73 2f 63 6f 6d 6d |ment2a/g|.Xs/comm|
|00002bf0| 65 6e 74 32 62 2f 43 63 | 6f 6d 6d 65 6e 74 32 62 |ent2b/Cc|omment2b|
|00002c00| 2f 67 0a 58 73 2f 63 6f | 6d 6d 65 6e 74 33 61 2f |/g.Xs/co|mment3a/|
|00002c10| 44 63 6f 6d 6d 65 6e 74 | 33 61 2f 67 0a 58 73 2f |Dcomment|3a/g.Xs/|
|00002c20| 63 6f 6d 6d 65 6e 74 33 | 62 2f 45 63 6f 6d 6d 65 |comment3|b/Ecomme|
|00002c30| 6e 74 33 62 2f 67 0a 58 | 73 2f 63 6f 6d 6d 65 6e |nt3b/g.X|s/commen|
|00002c40| 74 34 61 2f 46 63 6f 6d | 6d 65 6e 74 34 61 2f 67 |t4a/Fcom|ment4a/g|
|00002c50| 0a 58 73 2f 63 6f 6d 6d | 65 6e 74 34 62 2f 47 63 |.Xs/comm|ent4b/Gc|
|00002c60| 6f 6d 6d 65 6e 74 34 62 | 2f 67 0a 58 73 2f 63 6f |omment4b|/g.Xs/co|
|00002c70| 6d 6d 65 6e 74 35 2f 48 | 63 6f 6d 6d 65 6e 74 35 |mment5/H|comment5|
|00002c80| 2f 67 0a 58 73 2f 64 69 | 73 70 6c 61 79 5f 63 68 |/g.Xs/di|splay_ch|
|00002c90| 61 72 2f 41 64 69 73 70 | 6c 61 79 5f 63 68 61 72 |ar/Adisp|lay_char|
|00002ca0| 2f 67 0a 58 73 2f 64 69 | 73 70 6c 61 79 5f 73 63 |/g.Xs/di|splay_sc|
|00002cb0| 6f 72 65 73 2f 42 64 69 | 73 70 6c 61 79 5f 73 63 |ores/Bdi|splay_sc|
|00002cc0| 6f 72 65 73 2f 67 0a 58 | 73 2f 64 69 73 70 6c 61 |ores/g.X|s/displa|
|00002cd0| 79 5f 63 6f 6d 6d 61 6e | 64 73 2f 43 64 69 73 70 |y_comman|ds/Cdisp|
|00002ce0| 6c 61 79 5f 63 6f 6d 6d | 61 6e 64 73 2f 67 0a 58 |lay_comm|ands/g.X|
|00002cf0| 73 2f 64 69 73 70 6c 61 | 79 5f 69 6e 76 65 6e 74 |s/displa|y_invent|
|00002d00| 6f 72 79 2f 44 64 69 73 | 70 6c 61 79 5f 69 6e 76 |ory/Ddis|play_inv|
|00002d10| 65 6e 74 6f 72 79 2f 67 | 0a 58 73 2f 64 69 73 70 |entory/g|.Xs/disp|
|00002d20| 6c 61 79 5f 63 6f 73 74 | 2f 45 64 69 73 70 6c 61 |lay_cost|/Edispla|
|00002d30| 79 5f 63 6f 73 74 2f 67 | 0a 58 73 2f 64 69 73 70 |y_cost/g|.Xs/disp|
|00002d40| 6c 61 79 5f 73 74 6f 72 | 65 2f 46 64 69 73 70 6c |lay_stor|e/Fdispl|
|00002d50| 61 79 5f 63 6f 73 74 2f | 67 0a 58 73 2f 73 69 67 |ay_cost/|g.Xs/sig|
|00002d60| 6e 61 6c 5f 68 61 6e 64 | 6c 65 72 2f 41 73 69 67 |nal_hand|ler/Asig|
|00002d70| 6e 61 6c 5f 68 61 6e 64 | 6c 65 72 2f 67 0a 58 73 |nal_hand|ler/g.Xs|
|00002d80| 2f 6e 65 77 5f 6d 61 6e | 61 2f 41 6e 65 77 5f 6d |/new_man|a/Anew_m|
|00002d90| 61 6e 61 2f 67 0a 58 73 | 2f 41 6e 65 77 5f 6d 61 |ana/g.Xs|/Anew_ma|
|00002da0| 6e 61 5f 66 72 61 63 2f | 42 6e 65 77 5f 6d 61 6e |na_frac/|Bnew_man|
|00002db0| 61 5f 66 72 61 63 2f 67 | 0a 58 73 2f 66 69 6e 64 |a_frac/g|.Xs/find|
|00002dc0| 5f 62 72 65 61 6b 6c 65 | 66 74 2f 41 66 69 6e 64 |_breakle|ft/Afind|
|00002dd0| 5f 62 72 65 61 6b 6c 65 | 66 74 2f 67 0a 58 73 2f |_breakle|ft/g.Xs/|
|00002de0| 66 69 6e 64 5f 62 72 65 | 61 6b 72 69 67 68 74 2f |find_bre|akright/|
|00002df0| 42 66 69 6e 64 5f 62 72 | 65 61 6b 72 69 67 68 74 |Bfind_br|eakright|
|00002e00| 2f 67 0a 58 73 2f 6d 61 | 70 5f 64 69 61 67 31 2f |/g.Xs/ma|p_diag1/|
|00002e10| 41 6d 61 70 5f 64 69 61 | 67 31 2f 67 0a 58 73 2f |Amap_dia|g1/g.Xs/|
|00002e20| 6d 61 70 5f 64 69 61 67 | 32 2f 42 6d 61 70 5f 64 |map_diag|2/Bmap_d|
|00002e30| 69 61 67 32 2f 67 0a 58 | 73 2f 59 6f 75 20 66 65 |iag2/g.X|s/You fe|
|00002e40| 65 6c 20 42 63 6f 6e 66 | 75 73 65 64 2f 59 6f 75 |el Bconf|used/You|
|00002e50| 20 66 65 65 6c 20 63 6f | 6e 66 75 73 65 64 2f 67 | feel co|nfused/g|
|00002e60| 0a 58 73 2f 61 70 70 65 | 61 72 73 20 42 63 6f 6e |.Xs/appe|ars Bcon|
|00002e70| 66 75 73 65 64 2f 61 70 | 70 65 61 72 73 20 63 6f |fused/ap|pears co|
|00002e80| 6e 66 75 73 65 64 2f 67 | 0a 58 73 2f 72 75 6e 65 |nfused/g|.Xs/rune|
|00002e90| 20 6f 66 20 42 70 72 6f | 74 65 63 74 69 6f 6e 2f | of Bpro|tection/|
|00002ea0| 72 75 6e 65 20 6f 66 20 | 70 72 6f 74 65 63 74 69 |rune of |protecti|
|00002eb0| 6f 6e 2f 67 0a 58 73 2f | 59 6f 75 20 66 65 65 6c |on/g.Xs/|You feel|
|00002ec0| 20 6c 65 73 73 20 42 63 | 6f 6e 66 75 73 65 64 20 | less Bc|onfused |
|00002ed0| 6e 6f 77 2f 59 6f 75 20 | 66 65 65 6c 20 6c 65 73 |now/You |feel les|
|00002ee0| 73 20 63 6f 6e 66 75 73 | 65 64 20 6e 6f 77 2f 67 |s confus|ed now/g|
|00002ef0| 0a 58 73 2f 65 72 72 6f | 72 20 69 6e 20 42 6d 6f |.Xs/erro|r in Bmo|
|00002f00| 76 65 5f 63 75 72 73 6f | 72 5f 72 65 6c 61 74 69 |ve_curso|r_relati|
|00002f10| 76 65 2f 65 72 72 6f 72 | 20 69 6e 20 6d 6f 76 65 |ve/error| in move|
|00002f20| 5f 63 75 72 73 6f 72 5f | 72 65 6c 61 74 69 76 65 |_cursor_|relative|
|00002f30| 2f 67 0a 58 73 2f 59 6f | 75 20 61 72 65 20 74 6f |/g.Xs/Yo|u are to|
|00002f40| 6f 20 42 63 6f 6e 66 75 | 73 65 64 2f 59 6f 75 20 |o Bconfu|sed/You |
|00002f50| 61 72 65 20 74 6f 6f 20 | 63 6f 6e 66 75 73 65 64 |are too |confused|
|00002f60| 2f 67 0a 58 73 2f 59 6f | 75 20 68 69 74 20 61 20 |/g.Xs/Yo|u hit a |
|00002f70| 41 74 65 6c 65 70 6f 72 | 74 20 74 72 61 70 21 2f |Atelepor|t trap!/|
|00002f80| 59 6f 75 20 68 69 74 20 | 61 20 74 65 6c 65 70 6f |You hit |a telepo|
|00002f90| 72 74 20 74 72 61 70 21 | 2f 67 0a 58 73 2f 59 6f |rt trap!|/g.Xs/Yo|
|00002fa0| 75 20 61 72 65 20 42 63 | 6f 6e 66 75 73 65 64 2f |u are Bc|onfused/|
|00002fb0| 59 6f 75 20 61 72 65 20 | 63 6f 6e 66 75 73 65 64 |You are |confused|
|00002fc0| 2f 67 0a 58 73 2f 6b 69 | 6c 6c 20 77 65 61 6b 65 |/g.Xs/ki|ll weake|
|00002fd0| 72 20 42 63 72 65 61 74 | 75 72 65 73 2f 6b 69 6c |r Bcreat|ures/kil|
|00002fe0| 6c 20 77 65 61 6b 65 72 | 20 63 72 65 61 74 75 72 |l weaker| creatur|
|00002ff0| 65 73 2f 67 0a 58 73 2f | 41 74 65 6c 65 70 6f 72 |es/g.Xs/|Atelepor|
|00003000| 74 20 73 68 6f 72 74 20 | 64 69 73 74 61 6e 63 65 |t short |distance|
|00003010| 73 2f 74 65 6c 65 70 6f | 72 74 20 73 68 6f 72 74 |s/telepo|rt short|
|00003020| 20 64 69 73 74 61 6e 63 | 65 73 2f 67 0a 58 73 2f | distanc|es/g.Xs/|
|00003030| 41 74 65 6c 65 70 6f 72 | 74 20 6c 6f 6e 67 20 64 |Atelepor|t long d|
|00003040| 69 73 74 61 6e 63 65 73 | 2f 74 65 6c 65 70 6f 72 |istances|/telepor|
|00003050| 74 20 6c 6f 6e 67 20 64 | 69 73 74 61 6e 63 65 73 |t long d|istances|
|00003060| 2f 67 0a 58 73 2f 41 74 | 65 6c 65 70 6f 72 74 20 |/g.Xs/At|eleport |
|00003070| 69 74 73 20 70 72 65 79 | 2f 74 65 6c 65 70 6f 72 |its prey|/telepor|
|00003080| 74 20 69 74 73 20 70 72 | 65 79 2f 67 0a 58 73 2f |t its pr|ey/g.Xs/|
|00003090| 6f 66 20 74 68 65 73 65 | 20 42 63 72 65 61 74 75 |of these| Bcreatu|
|000030a0| 72 65 73 2f 6f 66 20 74 | 68 65 73 65 20 63 72 65 |res/of t|hese cre|
|000030b0| 61 74 75 72 65 73 2f 67 | 0a 58 73 2f 69 6e 76 69 |atures/g|.Xs/invi|
|000030c0| 73 69 62 6c 65 20 42 63 | 72 65 61 74 75 72 65 73 |sible Bc|reatures|
|000030d0| 21 2f 69 6e 76 69 73 69 | 62 6c 65 20 63 72 65 61 |!/invisi|ble crea|
|000030e0| 74 75 72 65 73 21 2f 67 | 0a 58 73 2f 65 6e 76 65 |tures!/g|.Xs/enve|
|000030f0| 6c 6f 70 65 73 20 73 65 | 76 65 72 61 6c 20 42 63 |lopes se|veral Bc|
|00003100| 72 65 61 74 75 72 65 73 | 21 2f 65 6e 76 65 6c 6f |reatures|!/envelo|
|00003110| 70 65 73 20 73 65 76 65 | 72 61 6c 20 63 72 65 61 |pes seve|ral crea|
|00003120| 74 75 72 65 73 21 2f 67 | 0a 58 73 2f 59 6f 75 20 |tures!/g|.Xs/You |
|00003130| 61 72 65 20 42 63 6f 6e | 66 75 73 65 64 2f 59 6f |are Bcon|fused/Yo|
|00003140| 75 20 61 72 65 20 63 6f | 6e 66 75 73 65 64 2f 67 |u are co|nfused/g|
|00003150| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00003160| 74 65 73 74 20 31 31 30 | 31 37 20 2d 6e 65 20 60 |test 110|17 -ne `|
|00003170| 77 63 20 2d 63 20 3c 27 | 73 68 6f 72 74 6e 61 6d |wc -c <'|shortnam|
|00003180| 2e 73 65 64 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |.sed'`; |then. |
|00003190| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 73 | echo sh|ar: \"'s|
|000031a0| 68 6f 72 74 6e 61 6d 2e | 73 65 64 27 5c 22 20 75 |hortnam.|sed'\" u|
|000031b0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000031c0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|000031d0| 64 20 6f 66 20 27 73 68 | 6f 72 74 6e 61 6d 2e 73 |d of 'sh|ortnam.s|
|000031e0| 65 64 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ed'.fi.i|f test -|
|000031f0| 66 20 27 73 6f 75 72 63 | 65 2f 6d 69 73 63 31 2e |f 'sourc|e/misc1.|
|00003200| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00003210| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00003220| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00003230| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00003240| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 73 6f 75 72 |ing file| \"'sour|
|00003250| 63 65 2f 6d 69 73 63 31 | 2e 63 27 5c 22 0a 65 6c |ce/misc1|.c'\".el|
|00003260| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00003270| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 73 6f 75 72 |tracting| \"'sour|
|00003280| 63 65 2f 6d 69 73 63 31 | 2e 63 27 5c 22 20 5c 28 |ce/misc1|.c'\" \(|
|00003290| 34 35 36 35 35 20 63 68 | 61 72 61 63 74 65 72 73 |45655 ch|aracters|
|000032a0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000032b0| 3e 27 73 6f 75 72 63 65 | 2f 6d 69 73 63 31 2e 63 |>'source|/misc1.c|
|000032c0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000032d0| 27 0a 58 2f 2a 20 6d 69 | 73 63 31 2e 63 3a 20 6d |'.X/* mi|sc1.c: m|
|000032e0| 69 73 63 20 75 74 69 6c | 69 74 79 20 61 6e 64 20 |isc util|ity and |
|000032f0| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 63 |initiali|zation c|
|00003300| 6f 64 65 2c 20 6d 61 67 | 69 63 20 6f 62 6a 65 63 |ode, mag|ic objec|
|00003310| 74 73 20 63 6f 64 65 0a | 58 0a 58 20 20 20 43 6f |ts code.|X.X Co|
|00003320| 70 79 72 69 67 68 74 20 | 28 63 29 20 31 39 38 39 |pyright |(c) 1989|
|00003330| 20 4a 61 6d 65 73 20 45 | 2e 20 57 69 6c 73 6f 6e | James E|. Wilson|
|00003340| 2c 20 52 6f 62 65 72 74 | 20 41 2e 20 4b 6f 65 6e |, Robert| A. Koen|
|00003350| 65 6b 65 0a 58 0a 58 20 | 20 20 54 68 69 73 20 73 |eke.X.X | This s|
|00003360| 6f 66 74 77 61 72 65 20 | 6d 61 79 20 62 65 20 63 |oftware |may be c|
|00003370| 6f 70 69 65 64 20 61 6e | 64 20 64 69 73 74 72 69 |opied an|d distri|
|00003380| 62 75 74 65 64 20 66 6f | 72 20 65 64 75 63 61 74 |buted fo|r educat|
|00003390| 69 6f 6e 61 6c 2c 20 72 | 65 73 65 61 72 63 68 2c |ional, r|esearch,|
|000033a0| 20 61 6e 64 0a 58 20 20 | 20 6e 6f 74 20 66 6f 72 | and.X | not for|
|000033b0| 20 70 72 6f 66 69 74 20 | 70 75 72 70 6f 73 65 73 | profit |purposes|
|000033c0| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|000033d0| 68 69 73 20 63 6f 70 79 | 72 69 67 68 74 20 61 6e |his copy|right an|
|000033e0| 64 20 73 74 61 74 65 6d | 65 6e 74 20 61 72 65 0a |d statem|ent are.|
|000033f0| 58 20 20 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 |X incl|uded in |
|00003400| 61 6c 6c 20 73 75 63 68 | 20 63 6f 70 69 65 73 2e |all such| copies.|
|00003410| 20 2a 2f 0a 58 0a 58 23 | 69 66 64 65 66 20 50 79 | */.X.X#|ifdef Py|
|00003420| 72 61 6d 69 64 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ramid.X#|include |
|00003430| 3c 73 79 73 2f 74 69 6d | 65 2e 68 3e 0a 58 23 65 |<sys/tim|e.h>.X#e|
|00003440| 6c 73 65 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 74 |lse.X#in|clude <t|
|00003450| 69 6d 65 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |ime.h>.X|#endif.X|
|00003460| 23 69 66 20 21 64 65 66 | 69 6e 65 64 28 47 45 4d |#if !def|ined(GEM|
|00003470| 44 4f 53 29 20 26 26 20 | 21 64 65 66 69 6e 65 64 |DOS) && |!defined|
|00003480| 28 4d 41 43 29 0a 58 23 | 69 66 6e 64 65 66 20 56 |(MAC).X#|ifndef V|
|00003490| 4d 53 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |MS.X#inc|lude <sy|
|000034a0| 73 2f 74 79 70 65 73 2e | 68 3e 0a 58 23 65 6c 73 |s/types.|h>.X#els|
|000034b0| 65 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 74 79 70 |e.X#incl|ude <typ|
|000034c0| 65 73 2e 68 3e 0a 58 23 | 65 6e 64 69 66 0a 58 23 |es.h>.X#|endif.X#|
|000034d0| 65 6e 64 69 66 0a 58 0a | 58 23 69 6e 63 6c 75 64 |endif.X.|X#includ|
|000034e0| 65 20 22 63 6f 6e 73 74 | 61 6e 74 2e 68 22 0a 58 |e "const|ant.h".X|
|000034f0| 23 69 6e 63 6c 75 64 65 | 20 22 63 6f 6e 66 69 67 |#include| "config|
|00003500| 2e 68 22 0a 58 23 69 6e | 63 6c 75 64 65 20 22 74 |.h".X#in|clude "t|
|00003510| 79 70 65 73 2e 68 22 0a | 58 23 69 6e 63 6c 75 64 |ypes.h".|X#includ|
|00003520| 65 20 22 65 78 74 65 72 | 6e 73 2e 68 22 0a 58 0a |e "exter|ns.h".X.|
|00003530| 58 23 69 66 64 65 66 20 | 55 53 47 0a 58 23 69 66 |X#ifdef |USG.X#if|
|00003540| 6e 64 65 66 20 41 54 41 | 52 49 53 54 5f 4d 57 43 |ndef ATA|RIST_MWC|
|00003550| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |.X#inclu|de <stri|
|00003560| 6e 67 2e 68 3e 0a 58 23 | 65 6c 73 65 0a 58 23 69 |ng.h>.X#|else.X#i|
|00003570| 6e 63 6c 75 64 65 20 22 | 73 74 72 69 6e 67 2e 68 |nclude "|string.h|
|00003580| 22 0a 58 23 65 6e 64 69 | 66 0a 58 23 65 6c 73 65 |".X#endi|f.X#else|
|00003590| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |.X#inclu|de <stri|
|000035a0| 6e 67 73 2e 68 3e 0a 58 | 23 65 6e 64 69 66 0a 58 |ngs.h>.X|#endif.X|
|000035b0| 0a 58 23 69 66 20 64 65 | 66 69 6e 65 64 28 4c 49 |.X#if de|fined(LI|
|000035c0| 4e 54 5f 41 52 47 53 29 | 0a 58 73 74 61 74 69 63 |NT_ARGS)|.Xstatic|
|000035d0| 20 76 6f 69 64 20 63 6f | 6d 70 61 63 74 5f 6d 6f | void co|mpact_mo|
|000035e0| 6e 73 74 65 72 73 28 76 | 6f 69 64 29 3b 0a 58 73 |nsters(v|oid);.Xs|
|000035f0| 74 61 74 69 63 20 76 6f | 69 64 20 63 6f 6d 70 61 |tatic vo|id compa|
|00003600| 63 74 5f 6f 62 6a 65 63 | 74 73 28 76 6f 69 64 29 |ct_objec|ts(void)|
|00003610| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 23 69 66 |;.X#endi|f.X.X#if|
|00003620| 20 21 64 65 66 69 6e 65 | 64 28 41 54 41 52 49 53 | !define|d(ATARIS|
|00003630| 54 5f 4d 57 43 29 20 26 | 26 20 21 64 65 66 69 6e |T_MWC) &|& !defin|
|00003640| 65 64 28 4d 41 43 29 0a | 58 6c 6f 6e 67 20 74 69 |ed(MAC).|Xlong ti|
|00003650| 6d 65 28 29 3b 0a 58 23 | 65 6e 64 69 66 0a 58 73 |me();.X#|endif.Xs|
|00003660| 74 72 75 63 74 20 74 6d | 20 2a 6c 6f 63 61 6c 74 |truct tm| *localt|
|00003670| 69 6d 65 28 29 3b 0a 58 | 0a 58 0a 58 2f 2a 20 67 |ime();.X|.X.X/* g|
|00003680| 65 74 73 20 61 20 6e 65 | 77 20 72 61 6e 64 6f 6d |ets a ne|w random|
|00003690| 20 73 65 65 64 20 66 6f | 72 20 74 68 65 20 72 61 | seed fo|r the ra|
|000036a0| 6e 64 6f 6d 20 6e 75 6d | 62 65 72 20 67 65 6e 65 |ndom num|ber gene|
|000036b0| 72 61 74 6f 72 20 2a 2f | 0a 58 76 6f 69 64 20 69 |rator */|.Xvoid i|
|000036c0| 6e 69 74 5f 73 65 65 64 | 73 28 73 65 65 64 29 0a |nit_seed|s(seed).|
|000036d0| 58 69 6e 74 33 32 75 20 | 73 65 65 64 3b 0a 58 7b |Xint32u |seed;.X{|
|000036e0| 0a 58 20 20 72 65 67 69 | 73 74 65 72 20 69 6e 74 |.X regi|ster int|
|000036f0| 33 32 75 20 63 6c 6f 63 | 6b 3b 0a 58 0a 58 20 20 |32u cloc|k;.X.X |
|00003700| 69 66 20 28 73 65 65 64 | 20 3d 3d 20 30 29 0a 58 |if (seed| == 0).X|
|00003710| 23 69 66 64 65 66 20 4d | 41 43 0a 58 20 20 20 20 |#ifdef M|AC.X |
|00003720| 63 6c 6f 63 6b 20 3d 20 | 74 69 6d 65 28 28 74 69 |clock = |time((ti|
|00003730| 6d 65 5f 74 20 2a 29 30 | 29 3b 0a 58 23 65 6c 73 |me_t *)0|);.X#els|
|00003740| 65 0a 58 20 20 20 20 63 | 6c 6f 63 6b 20 3d 20 74 |e.X c|lock = t|
|00003750| 69 6d 65 28 28 6c 6f 6e | 67 20 2a 29 30 29 3b 0a |ime((lon|g *)0);.|
|00003760| 58 23 65 6e 64 69 66 0a | 58 20 20 65 6c 73 65 0a |X#endif.|X else.|
|00003770| 58 20 20 20 20 63 6c 6f | 63 6b 20 3d 20 73 65 65 |X clo|ck = see|
|00003780| 64 3b 0a 58 20 20 72 61 | 6e 64 65 73 5f 73 65 65 |d;.X ra|ndes_see|
|00003790| 64 20 3d 20 28 75 6e 73 | 69 67 6e 65 64 20 69 6e |d = (uns|igned in|
|000037a0| 74 29 63 6c 6f 63 6b 3b | 0a 58 0a 58 20 20 63 6c |t)clock;|.X.X cl|
|000037b0| 6f 63 6b 20 2b 3d 20 38 | 37 36 32 3b 0a 58 20 20 |ock += 8|762;.X |
|000037c0| 74 6f 77 6e 5f 73 65 65 | 64 20 3d 20 28 75 6e 73 |town_see|d = (uns|
|000037d0| 69 67 6e 65 64 20 69 6e | 74 29 63 6c 6f 63 6b 3b |igned in|t)clock;|
|000037e0| 0a 58 0a 58 20 20 63 6c | 6f 63 6b 20 2b 3d 20 31 |.X.X cl|ock += 1|
|000037f0| 31 33 34 35 32 4c 3b 0a | 58 20 20 73 65 74 5f 72 |13452L;.|X set_r|
|00003800| 6e 64 5f 73 65 65 64 28 | 63 6c 6f 63 6b 29 3b 0a |nd_seed(|clock);.|
|00003810| 58 20 20 2f 2a 20 6d 61 | 6b 65 20 69 74 20 61 20 |X /* ma|ke it a |
|00003820| 6c 69 74 74 6c 65 20 6d | 6f 72 65 20 72 61 6e 64 |little m|ore rand|
|00003830| 6f 6d 20 2a 2f 0a 58 20 | 20 66 6f 72 20 28 63 6c |om */.X | for (cl|
|00003840| 6f 63 6b 20 3d 20 72 61 | 6e 64 69 6e 74 28 31 30 |ock = ra|ndint(10|
|00003850| 30 29 3b 20 63 6c 6f 63 | 6b 20 21 3d 20 30 3b 20 |0); cloc|k != 0; |
|00003860| 63 6c 6f 63 6b 2d 2d 29 | 0a 58 20 20 20 20 28 76 |clock--)|.X (v|
|00003870| 6f 69 64 29 20 72 6e 64 | 28 29 3b 0a 58 7d 0a 58 |oid) rnd|();.X}.X|
|00003880| 0a 58 2f 2a 20 68 6f 6c | 64 73 20 74 68 65 20 70 |.X/* hol|ds the p|
|00003890| 72 65 76 69 6f 75 73 20 | 72 6e 64 20 73 74 61 74 |revious |rnd stat|
|000038a0| 65 20 2a 2f 0a 58 73 74 | 61 74 69 63 20 69 6e 74 |e */.Xst|atic int|
|000038b0| 33 32 75 20 6f 6c 64 5f | 73 65 65 64 3b 0a 58 0a |32u old_|seed;.X.|
|000038c0| 58 2f 2a 20 63 68 61 6e | 67 65 20 74 6f 20 64 69 |X/* chan|ge to di|
|000038d0| 66 66 65 72 65 6e 74 20 | 72 61 6e 64 6f 6d 20 6e |fferent |random n|
|000038e0| 75 6d 62 65 72 20 67 65 | 6e 65 72 61 74 6f 72 20 |umber ge|nerator |
|000038f0| 73 74 61 74 65 20 2a 2f | 0a 58 76 6f 69 64 20 73 |state */|.Xvoid s|
|00003900| 65 74 5f 73 65 65 64 28 | 73 65 65 64 29 0a 58 69 |et_seed(|seed).Xi|
|00003910| 6e 74 33 32 75 20 73 65 | 65 64 3b 0a 58 7b 0a 58 |nt32u se|ed;.X{.X|
|00003920| 20 20 6f 6c 64 5f 73 65 | 65 64 20 3d 20 67 65 74 | old_se|ed = get|
|00003930| 5f 72 6e 64 5f 73 65 65 | 64 20 28 29 3b 0a 58 0a |_rnd_see|d ();.X.|
|00003940| 58 20 20 2f 2a 20 77 61 | 6e 74 20 72 65 70 72 6f |X /* wa|nt repro|
|00003950| 64 75 63 69 62 6c 65 20 | 73 74 61 74 65 20 68 65 |ducible |state he|
|00003960| 72 65 20 2a 2f 0a 58 20 | 20 73 65 74 5f 72 6e 64 |re */.X | set_rnd|
|00003970| 5f 73 65 65 64 20 28 73 | 65 65 64 29 3b 0a 58 7d |_seed (s|eed);.X}|
|00003980| 0a 58 0a 58 0a 58 2f 2a | 20 72 65 73 74 6f 72 65 |.X.X.X/*| restore|
|00003990| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 72 61 6e 64 | the nor|mal rand|
|000039a0| 6f 6d 20 67 65 6e 65 72 | 61 74 6f 72 20 73 74 61 |om gener|ator sta|
|000039b0| 74 65 20 2a 2f 0a 58 76 | 6f 69 64 20 72 65 73 65 |te */.Xv|oid rese|
|000039c0| 74 5f 73 65 65 64 28 29 | 0a 58 7b 0a 58 20 20 73 |t_seed()|.X{.X s|
|000039d0| 65 74 5f 72 6e 64 5f 73 | 65 65 64 20 28 6f 6c 64 |et_rnd_s|eed (old|
|000039e0| 5f 73 65 65 64 29 3b 0a | 58 7d 0a 58 0a 58 0a 58 |_seed);.|X}.X.X.X|
|000039f0| 2f 2a 20 43 68 65 63 6b | 20 74 68 65 20 64 61 79 |/* Check| the day|
|00003a00| 2d 74 69 6d 65 20 73 74 | 72 69 6e 67 73 20 74 6f |-time st|rings to|
|00003a10| 20 73 65 65 20 69 66 20 | 6f 70 65 6e 09 09 2d 52 | see if |open..-R|
|00003a20| 41 4b 2d 09 2a 2f 0a 58 | 69 6e 74 20 63 68 65 63 |AK-.*/.X|int chec|
|00003a30| 6b 5f 74 69 6d 65 28 29 | 0a 58 7b 0a 58 23 69 66 |k_time()|.X{.X#if|
|00003a40| 64 65 66 20 4d 4f 52 49 | 41 5f 48 4f 55 0a 58 20 |def MORI|A_HOU.X |
|00003a50| 20 6c 6f 6e 67 20 63 6c | 6f 63 6b 3b 0a 58 20 20 | long cl|ock;.X |
|00003a60| 72 65 67 69 73 74 65 72 | 20 73 74 72 75 63 74 20 |register| struct |
|00003a70| 74 6d 20 2a 74 70 3b 0a | 58 0a 58 23 69 66 64 65 |tm *tp;.|X.X#ifde|
|00003a80| 66 20 4d 41 43 0a 58 20 | 20 63 6c 6f 63 6b 20 3d |f MAC.X | clock =|
|00003a90| 20 74 69 6d 65 28 28 74 | 69 6d 65 5f 74 20 2a 29 | time((t|ime_t *)|
|00003aa0| 30 29 3b 0a 58 23 65 6c | 73 65 0a 58 20 20 63 6c |0);.X#el|se.X cl|
|00003ab0| 6f 63 6b 20 3d 20 74 69 | 6d 65 28 28 6c 6f 6e 67 |ock = ti|me((long|
|00003ac0| 20 2a 29 30 29 3b 0a 58 | 23 65 6e 64 69 66 0a 58 | *)0);.X|#endif.X|
|00003ad0| 20 20 74 70 20 3d 20 6c | 6f 63 61 6c 74 69 6d 65 | tp = l|ocaltime|
|00003ae0| 28 26 63 6c 6f 63 6b 29 | 3b 0a 58 20 20 69 66 20 |(&clock)|;.X if |
|00003af0| 28 64 61 79 73 5b 74 70 | 2d 3e 74 6d 5f 77 64 61 |(days[tp|->tm_wda|
|00003b00| 79 5d 5b 74 70 2d 3e 74 | 6d 5f 68 6f 75 72 2b 34 |y][tp->t|m_hour+4|
|00003b10| 5d 20 3d 3d 20 27 58 27 | 29 0a 58 20 20 20 20 72 |] == 'X'|).X r|
|00003b20| 65 74 75 72 6e 20 54 52 | 55 45 3b 0a 58 20 20 65 |eturn TR|UE;.X e|
|00003b30| 6c 73 65 0a 58 20 20 20 | 20 72 65 74 75 72 6e 20 |lse.X | return |
|00003b40| 46 41 4c 53 45 3b 0a 58 | 23 65 6c 73 65 0a 58 20 |FALSE;.X|#else.X |
|00003b50| 20 72 65 74 75 72 6e 20 | 54 52 55 45 3b 0a 58 23 | return |TRUE;.X#|
|00003b60| 65 6e 64 69 66 0a 58 7d | 0a 58 0a 58 0a 58 2f 2a |endif.X}|.X.X.X/*|
|00003b70| 20 47 65 6e 65 72 61 74 | 65 73 20 61 20 72 61 6e | Generat|es a ran|
|00003b80| 64 6f 6d 20 69 6e 74 65 | 67 65 72 20 78 20 77 68 |dom inte|ger x wh|
|00003b90| 65 72 65 20 31 3c 3d 58 | 3c 3d 4d 41 58 56 41 4c |ere 1<=X|<=MAXVAL|
|00003ba0| 09 2d 52 41 4b 2d 09 2a | 2f 0a 58 69 6e 74 20 72 |.-RAK-.*|/.Xint r|
|00003bb0| 61 6e 64 69 6e 74 28 6d | 61 78 76 61 6c 29 0a 58 |andint(m|axval).X|
|00003bc0| 69 6e 74 20 6d 61 78 76 | 61 6c 3b 0a 58 7b 0a 58 |int maxv|al;.X{.X|
|00003bd0| 20 20 72 65 67 69 73 74 | 65 72 20 6c 6f 6e 67 20 | regist|er long |
|00003be0| 72 61 6e 64 76 61 6c 3b | 0a 58 0a 58 20 20 72 61 |randval;|.X.X ra|
|00003bf0| 6e 64 76 61 6c 20 3d 20 | 72 6e 64 20 28 29 3b 0a |ndval = |rnd ();.|
|00003c00| 58 20 20 72 65 74 75 72 | 6e 20 28 28 72 61 6e 64 |X retur|n ((rand|
|00003c10| 76 61 6c 20 25 20 6d 61 | 78 76 61 6c 29 20 2b 20 |val % ma|xval) + |
|00003c20| 31 29 3b 0a 58 7d 0a 58 | 0a 58 2f 2a 20 47 65 6e |1);.X}.X|.X/* Gen|
|00003c30| 65 72 61 74 65 73 20 61 | 20 72 61 6e 64 6f 6d 20 |erates a| random |
|00003c40| 69 6e 74 65 67 65 72 20 | 6e 75 6d 62 65 72 20 6f |integer |number o|
|00003c50| 66 20 4e 4f 52 4d 41 4c | 20 64 69 73 74 72 69 62 |f NORMAL| distrib|
|00003c60| 75 74 69 6f 6e 20 2d 52 | 41 4b 2d 2a 2f 0a 58 69 |ution -R|AK-*/.Xi|
|00003c70| 6e 74 20 72 61 6e 64 6e | 6f 72 28 6d 65 61 6e 2c |nt randn|or(mean,|
|00003c80| 20 73 74 61 6e 64 29 0a | 58 69 6e 74 20 6d 65 61 | stand).|Xint mea|
|00003c90| 6e 2c 20 73 74 61 6e 64 | 3b 0a 58 7b 0a 58 20 20 |n, stand|;.X{.X |
|00003ca0| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 74 6d 70 |register| int tmp|
|00003cb0| 2c 20 6f 66 66 73 65 74 | 2c 20 6c 6f 77 2c 20 69 |, offset|, low, i|
|00003cc0| 69 6e 64 65 78 2c 20 68 | 69 67 68 3b 0a 58 0a 58 |index, h|igh;.X.X|
|00003cd0| 23 69 66 20 30 0a 58 20 | 20 2f 2a 20 61 6c 74 65 |#if 0.X | /* alte|
|00003ce0| 72 6e 61 74 65 20 72 61 | 6e 64 6e 6f 72 20 63 6f |rnate ra|ndnor co|
|00003cf0| 64 65 2c 20 73 6c 6f 77 | 65 72 20 62 75 74 20 6d |de, slow|er but m|
|00003d00| 75 63 68 20 73 6d 61 6c | 6c 65 72 20 73 69 6e 63 |uch smal|ler sinc|
|00003d10| 65 20 6e 6f 20 74 61 62 | 6c 65 20 2a 2f 0a 58 20 |e no tab|le */.X |
|00003d20| 20 2f 2a 20 32 20 70 65 | 72 20 31 2c 30 30 30 2c | /* 2 pe|r 1,000,|
|00003d30| 30 30 30 20 77 69 6c 6c | 20 62 65 20 3e 20 34 2a |000 will| be > 4*|
|00003d40| 53 44 2c 20 6d 61 78 20 | 69 73 20 35 2a 53 44 20 |SD, max |is 5*SD |
|00003d50| 2a 2f 0a 58 20 20 74 6d | 70 20 3d 20 64 61 6d 72 |*/.X tm|p = damr|
|00003d60| 6f 6c 6c 28 38 2c 20 39 | 39 29 3b 09 20 2f 2a 20 |oll(8, 9|9);. /* |
|00003d70| 6d 65 61 6e 20 34 30 30 | 2c 20 53 44 20 38 31 20 |mean 400|, SD 81 |
|00003d80| 2a 2f 0a 58 20 20 74 6d | 70 20 3d 20 28 74 6d 70 |*/.X tm|p = (tmp|
|00003d90| 20 2d 20 34 30 30 29 20 | 2a 20 73 74 61 6e 64 20 | - 400) |* stand |
|00003da0| 2f 20 38 31 3b 0a 58 20 | 20 72 65 74 75 72 6e 20 |/ 81;.X | return |
|00003db0| 74 6d 70 20 2b 20 6d 65 | 61 6e 3b 0a 58 23 65 6e |tmp + me|an;.X#en|
|00003dc0| 64 69 66 0a 58 0a 58 20 | 20 74 6d 70 20 3d 20 72 |dif.X.X | tmp = r|
|00003dd0| 61 6e 64 69 6e 74 28 4d | 41 58 5f 53 48 4f 52 54 |andint(M|AX_SHORT|
|00003de0| 29 3b 0a 58 0a 58 20 20 | 2f 2a 20 6f 66 66 20 73 |);.X.X |/* off s|
|00003df0| 63 61 6c 65 2c 20 61 73 | 73 69 67 6e 20 72 61 6e |cale, as|sign ran|
|00003e00| 64 6f 6d 20 76 61 6c 75 | 65 20 62 65 74 77 65 65 |dom valu|e betwee|
|00003e10| 6e 20 34 20 61 6e 64 20 | 35 20 74 69 6d 65 73 20 |n 4 and |5 times |
|00003e20| 53 44 20 2a 2f 0a 58 20 | 20 69 66 20 28 74 6d 70 |SD */.X | if (tmp|
|00003e30| 20 3d 3d 20 4d 41 58 5f | 53 48 4f 52 54 29 0a 58 | == MAX_|SHORT).X|
|00003e40| 20 20 20 20 7b 0a 58 20 | 20 20 20 20 20 6f 66 66 | {.X | off|
|00003e50| 73 65 74 20 3d 20 34 20 | 2a 20 73 74 61 6e 64 20 |set = 4 |* stand |
|00003e60| 2b 20 72 61 6e 64 69 6e | 74 28 73 74 61 6e 64 29 |+ randin|t(stand)|
|00003e70| 3b 0a 58 0a 58 20 20 20 | 20 20 20 2f 2a 20 6f 6e |;.X.X | /* on|
|00003e80| 65 20 68 61 6c 66 20 61 | 72 65 20 6e 65 67 61 74 |e half a|re negat|
|00003e90| 69 76 65 20 2a 2f 0a 58 | 20 20 20 20 20 20 69 66 |ive */.X| if|
|00003ea0| 20 28 72 61 6e 64 69 6e | 74 28 32 29 20 3d 3d 20 | (randin|t(2) == |
|00003eb0| 31 29 0a 58 09 6f 66 66 | 73 65 74 20 3d 20 2d 6f |1).X.off|set = -o|
|00003ec0| 66 66 73 65 74 3b 0a 58 | 0a 58 20 20 20 20 20 20 |ffset;.X|.X |
|00003ed0| 72 65 74 75 72 6e 20 6d | 65 61 6e 20 2b 20 6f 66 |return m|ean + of|
|00003ee0| 66 73 65 74 3b 0a 58 20 | 20 20 20 7d 0a 58 0a 58 |fset;.X | }.X.X|
|00003ef0| 20 20 2f 2a 20 62 69 6e | 61 72 79 20 73 65 61 72 | /* bin|ary sear|
|00003f00| 63 68 20 6e 6f 72 6d 61 | 6c 20 6e 6f 72 6d 61 6c |ch norma|l normal|
|00003f10| 5f 74 61 62 6c 65 20 74 | 6f 20 67 65 74 20 69 6e |_table t|o get in|
|00003f20| 64 65 78 20 74 68 61 74 | 20 6d 61 74 63 68 65 73 |dex that| matches|
|00003f30| 20 74 6d 70 20 2a 2f 0a | 58 20 20 2f 2a 20 74 68 | tmp */.|X /* th|
|00003f40| 69 73 20 74 61 6b 65 73 | 20 75 70 20 74 6f 20 38 |is takes| up to 8|
|00003f50| 20 69 74 65 72 61 74 69 | 6f 6e 73 20 2a 2f 0a 58 | iterati|ons */.X|
|00003f60| 20 20 6c 6f 77 20 3d 20 | 30 3b 0a 58 20 20 69 69 | low = |0;.X ii|
|00003f70| 6e 64 65 78 20 3d 20 4e | 4f 52 4d 41 4c 5f 54 41 |ndex = N|ORMAL_TA|
|00003f80| 42 4c 45 5f 53 49 5a 45 | 20 3e 3e 20 31 3b 0a 58 |BLE_SIZE| >> 1;.X|
|00003f90| 20 20 68 69 67 68 20 3d | 20 4e 4f 52 4d 41 4c 5f | high =| NORMAL_|
|00003fa0| 54 41 42 4c 45 5f 53 49 | 5a 45 3b 0a 58 20 20 77 |TABLE_SI|ZE;.X w|
|00003fb0| 68 69 6c 65 20 28 54 52 | 55 45 29 0a 58 20 20 20 |hile (TR|UE).X |
|00003fc0| 20 7b 0a 58 20 20 20 20 | 20 20 69 66 20 28 28 6e | {.X | if ((n|
|00003fd0| 6f 72 6d 61 6c 5f 74 61 | 62 6c 65 5b 69 69 6e 64 |ormal_ta|ble[iind|
|00003fe0| 65 78 5d 20 3d 3d 20 74 | 6d 70 29 20 7c 7c 20 28 |ex] == t|mp) || (|
|00003ff0| 68 69 67 68 20 3d 3d 20 | 28 6c 6f 77 2b 31 29 29 |high == |(low+1))|
|00004000| 29 0a 58 09 62 72 65 61 | 6b 3b 0a 58 20 20 20 20 |).X.brea|k;.X |
|00004010| 20 20 69 66 20 28 6e 6f | 72 6d 61 6c 5f 74 61 62 | if (no|rmal_tab|
|00004020| 6c 65 5b 69 69 6e 64 65 | 78 5d 20 3e 20 74 6d 70 |le[iinde|x] > tmp|
|00004030| 29 0a 58 09 7b 0a 58 09 | 20 20 68 69 67 68 20 3d |).X.{.X.| high =|
|00004040| 20 69 69 6e 64 65 78 3b | 0a 58 09 20 20 69 69 6e | iindex;|.X. iin|
|00004050| 64 65 78 20 3d 20 6c 6f | 77 20 2b 20 28 28 69 69 |dex = lo|w + ((ii|
|00004060| 6e 64 65 78 20 2d 20 6c | 6f 77 29 20 3e 3e 20 31 |ndex - l|ow) >> 1|
|00004070| 29 3b 0a 58 09 7d 0a 58 | 20 20 20 20 20 20 65 6c |);.X.}.X| el|
|00004080| 73 65 0a 58 09 7b 0a 58 | 09 20 20 6c 6f 77 20 3d |se.X.{.X|. low =|
|00004090| 20 69 69 6e 64 65 78 3b | 0a 58 09 20 20 69 69 6e | iindex;|.X. iin|
|000040a0| 64 65 78 20 3d 20 69 69 | 6e 64 65 78 20 2b 20 28 |dex = ii|ndex + (|
|000040b0| 28 68 69 67 68 20 2d 20 | 69 69 6e 64 65 78 29 20 |(high - |iindex) |
|000040c0| 3e 3e 20 31 29 3b 0a 58 | 09 7d 0a 58 20 20 20 20 |>> 1);.X|.}.X |
|000040d0| 7d 0a 58 0a 58 20 20 2f | 2a 20 6d 69 67 68 74 20 |}.X.X /|* might |
|000040e0| 65 6e 64 20 75 70 20 6f | 6e 65 20 62 65 6c 6f 77 |end up o|ne below|
|000040f0| 20 74 61 72 67 65 74 2c | 20 63 68 65 63 6b 20 74 | target,| check t|
|00004100| 68 61 74 20 68 65 72 65 | 20 2a 2f 0a 58 20 20 69 |hat here| */.X i|
|00004110| 66 20 28 6e 6f 72 6d 61 | 6c 5f 74 61 62 6c 65 5b |f (norma|l_table[|
|00004120| 69 69 6e 64 65 78 5d 20 | 3c 20 74 6d 70 29 0a 58 |iindex] |< tmp).X|
|00004130| 20 20 20 20 69 69 6e 64 | 65 78 20 3d 20 69 69 6e | iind|ex = iin|
|00004140| 64 65 78 20 2b 20 31 3b | 0a 58 0a 58 20 20 2f 2a |dex + 1;|.X.X /*|
|00004150| 20 6e 6f 72 6d 61 6c 5f | 74 61 62 6c 65 20 69 73 | normal_|table is|
|00004160| 20 62 61 73 65 64 20 6f | 6e 20 53 44 20 6f 66 20 | based o|n SD of |
|00004170| 36 34 2c 20 73 6f 20 61 | 64 6a 75 73 74 20 74 68 |64, so a|djust th|
|00004180| 65 20 69 6e 64 65 78 20 | 76 61 6c 75 65 20 68 65 |e index |value he|
|00004190| 72 65 2c 0a 58 20 20 20 | 20 20 72 6f 75 6e 64 20 |re,.X | round |
|000041a0| 74 68 65 20 68 61 6c 66 | 20 77 61 79 20 63 61 73 |the half| way cas|
|000041b0| 65 20 75 70 20 2a 2f 0a | 58 20 20 6f 66 66 73 65 |e up */.|X offse|
|000041c0| 74 20 3d 20 28 28 73 74 | 61 6e 64 20 2a 20 69 69 |t = ((st|and * ii|
|000041d0| 6e 64 65 78 29 20 2b 20 | 28 4e 4f 52 4d 41 4c 5f |ndex) + |(NORMAL_|
|000041e0| 54 41 42 4c 45 5f 53 44 | 20 3e 3e 20 31 29 29 20 |TABLE_SD| >> 1)) |
|000041f0| 2f 20 4e 4f 52 4d 41 4c | 5f 54 41 42 4c 45 5f 53 |/ NORMAL|_TABLE_S|
|00004200| 44 3b 0a 58 0a 58 20 20 | 2f 2a 20 6f 6e 65 20 68 |D;.X.X |/* one h|
|00004210| 61 6c 66 20 73 68 6f 75 | 6c 64 20 62 65 20 6e 65 |alf shou|ld be ne|
|00004220| 67 61 74 69 76 65 20 2a | 2f 0a 58 20 20 69 66 20 |gative *|/.X if |
|00004230| 28 72 61 6e 64 69 6e 74 | 28 32 29 20 3d 3d 20 31 |(randint|(2) == 1|
|00004240| 29 0a 58 20 20 20 20 6f | 66 66 73 65 74 20 3d 20 |).X o|ffset = |
|00004250| 2d 6f 66 66 73 65 74 3b | 0a 58 0a 58 20 20 72 65 |-offset;|.X.X re|
|00004260| 74 75 72 6e 20 6d 65 61 | 6e 20 2b 20 6f 66 66 73 |turn mea|n + offs|
|00004270| 65 74 3b 0a 58 7d 0a 58 | 0a 58 0a 58 2f 2a 20 52 |et;.X}.X|.X.X/* R|
|00004280| 65 74 75 72 6e 73 20 70 | 6f 73 69 74 69 6f 6e 20 |eturns p|osition |
|00004290| 6f 66 20 66 69 72 73 74 | 20 73 65 74 20 62 69 74 |of first| set bit|
|000042a0| 09 09 09 2d 52 41 4b 2d | 09 2a 2f 0a 58 2f 2a 20 |...-RAK-|.*/.X/* |
|000042b0| 20 20 20 20 61 6e 64 20 | 63 6c 65 61 72 73 20 74 | and |clears t|
|000042c0| 68 61 74 20 62 69 74 20 | 2a 2f 0a 58 69 6e 74 20 |hat bit |*/.Xint |
|000042d0| 62 69 74 5f 70 6f 73 28 | 74 65 73 74 29 0a 58 69 |bit_pos(|test).Xi|
|000042e0| 6e 74 33 32 75 20 2a 74 | 65 73 74 3b 0a 58 7b 0a |nt32u *t|est;.X{.|
|000042f0| 58 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |X regis|ter int |
|00004300| 69 3b 0a 58 20 20 72 65 | 67 69 73 74 65 72 20 69 |i;.X re|gister i|
|00004310| 6e 74 33 32 75 20 6d 61 | 73 6b 20 3d 20 30 78 31 |nt32u ma|sk = 0x1|
|00004320| 3b 0a 58 0a 58 20 20 66 | 6f 72 20 28 69 20 3d 20 |;.X.X f|or (i = |
|00004330| 30 3b 20 69 20 3c 20 73 | 69 7a 65 6f 66 28 2a 74 |0; i < s|izeof(*t|
|00004340| 65 73 74 29 2a 38 3b 20 | 69 2b 2b 29 20 7b 0a 58 |est)*8; |i++) {.X|
|00004350| 20 20 20 20 69 66 20 28 | 2a 74 65 73 74 20 26 20 | if (|*test & |
|00004360| 6d 61 73 6b 29 20 7b 0a | 58 20 20 20 20 20 20 2a |mask) {.|X *|
|00004370| 74 65 73 74 20 26 3d 20 | 7e 6d 61 73 6b 3b 0a 58 |test &= |~mask;.X|
|00004380| 20 20 20 20 20 20 72 65 | 74 75 72 6e 28 69 29 3b | re|turn(i);|
|00004390| 0a 58 20 20 20 20 7d 0a | 58 20 20 20 20 6d 61 73 |.X }.|X mas|
|000043a0| 6b 20 3c 3c 3d 20 31 3b | 0a 58 20 20 7d 0a 58 0a |k <<= 1;|.X }.X.|
|000043b0| 58 20 20 2f 2a 20 6e 6f | 20 6f 6e 65 20 62 69 74 |X /* no| one bit|
|000043c0| 73 20 66 6f 75 6e 64 20 | 2a 2f 0a 58 20 20 72 65 |s found |*/.X re|
|000043d0| 74 75 72 6e 28 2d 31 29 | 3b 0a 58 7d 0a 58 0a 58 |turn(-1)|;.X}.X.X|
|000043e0| 2f 2a 20 43 68 65 63 6b | 73 20 61 20 63 6f 2d 6f |/* Check|s a co-o|
|000043f0| 72 64 69 6e 61 74 65 20 | 66 6f 72 20 69 6e 20 62 |rdinate |for in b|
|00004400| 6f 75 6e 64 73 20 73 74 | 61 74 75 73 09 09 2d 52 |ounds st|atus..-R|
|00004410| 41 4b 2d 09 2a 2f 0a 58 | 69 6e 74 20 69 6e 5f 62 |AK-.*/.X|int in_b|
|00004420| 6f 75 6e 64 73 28 79 2c | 20 78 29 0a 58 69 6e 74 |ounds(y,| x).Xint|
|00004430| 20 79 2c 20 78 3b 0a 58 | 7b 0a 58 20 20 69 66 20 | y, x;.X|{.X if |
|00004440| 28 28 79 20 3e 20 30 29 | 20 26 26 20 28 79 20 3c |((y > 0)| && (y <|
|00004450| 20 63 75 72 5f 68 65 69 | 67 68 74 2d 31 29 20 26 | cur_hei|ght-1) &|
|00004460| 26 20 28 78 20 3e 20 30 | 29 20 26 26 20 28 78 20 |& (x > 0|) && (x |
|00004470| 3c 20 63 75 72 5f 77 69 | 64 74 68 2d 31 29 29 0a |< cur_wi|dth-1)).|
|00004480| 58 20 20 20 20 72 65 74 | 75 72 6e 28 54 52 55 45 |X ret|urn(TRUE|
|00004490| 29 3b 0a 58 20 20 65 6c | 73 65 0a 58 20 20 20 20 |);.X el|se.X |
|000044a0| 72 65 74 75 72 6e 28 46 | 41 4c 53 45 29 3b 0a 58 |return(F|ALSE);.X|
|000044b0| 7d 0a 58 0a 58 0a 58 2f | 2a 20 43 61 6c 63 75 6c |}.X.X.X/|* Calcul|
|000044c0| 61 74 65 73 20 63 75 72 | 72 65 6e 74 20 62 6f 75 |ates cur|rent bou|
|000044d0| 6e 64 61 72 69 65 73 09 | 09 09 09 2d 52 41 4b 2d |ndaries.|...-RAK-|
|000044e0| 09 2a 2f 0a 58 76 6f 69 | 64 20 70 61 6e 65 6c 5f |.*/.Xvoi|d panel_|
|000044f0| 62 6f 75 6e 64 73 28 29 | 0a 58 7b 0a 58 20 20 70 |bounds()|.X{.X p|
|00004500| 61 6e 65 6c 5f 72 6f 77 | 5f 6d 69 6e 20 3d 20 70 |anel_row|_min = p|
|00004510| 61 6e 65 6c 5f 72 6f 77 | 2a 28 53 43 52 45 45 4e |anel_row|*(SCREEN|
|00004520| 5f 48 45 49 47 48 54 2f | 32 29 3b 0a 58 20 20 70 |_HEIGHT/|2);.X p|
|00004530| 61 6e 65 6c 5f 72 6f 77 | 5f 6d 61 78 20 3d 20 70 |anel_row|_max = p|
|00004540| 61 6e 65 6c 5f 72 6f 77 | 5f 6d 69 6e 20 2b 20 53 |anel_row|_min + S|
|00004550| 43 52 45 45 4e 5f 48 45 | 49 47 48 54 20 2d 20 31 |CREEN_HE|IGHT - 1|
|00004560| 3b 0a 58 20 20 70 61 6e | 65 6c 5f 72 6f 77 5f 70 |;.X pan|el_row_p|
|00004570| 72 74 20 3d 20 70 61 6e | 65 6c 5f 72 6f 77 5f 6d |rt = pan|el_row_m|
|00004580| 69 6e 20 2d 20 31 3b 0a | 58 20 20 70 61 6e 65 6c |in - 1;.|X panel|
|00004590| 5f 63 6f 6c 5f 6d 69 6e | 20 3d 20 70 61 6e 65 6c |_col_min| = panel|
|000045a0| 5f 63 6f 6c 2a 28 53 43 | 52 45 45 4e 5f 57 49 44 |_col*(SC|REEN_WID|
|000045b0| 54 48 2f 32 29 3b 0a 58 | 20 20 70 61 6e 65 6c 5f |TH/2);.X| panel_|
|000045c0| 63 6f 6c 5f 6d 61 78 20 | 3d 20 70 61 6e 65 6c 5f |col_max |= panel_|
|000045d0| 63 6f 6c 5f 6d 69 6e 20 | 2b 20 53 43 52 45 45 4e |col_min |+ SCREEN|
|000045e0| 5f 57 49 44 54 48 20 2d | 20 31 3b 0a 58 20 20 70 |_WIDTH -| 1;.X p|
|000045f0| 61 6e 65 6c 5f 63 6f 6c | 5f 70 72 74 20 3d 20 70 |anel_col|_prt = p|
|00004600| 61 6e 65 6c 5f 63 6f 6c | 5f 6d 69 6e 20 2d 20 31 |anel_col|_min - 1|
|00004610| 33 3b 0a 58 7d 0a 58 0a | 58 0a 58 2f 2a 20 47 69 |3;.X}.X.|X.X/* Gi|
|00004620| 76 65 6e 20 61 6e 20 72 | 6f 77 20 28 79 29 20 61 |ven an r|ow (y) a|
|00004630| 6e 64 20 63 6f 6c 20 28 | 78 29 2c 20 74 68 69 73 |nd col (|x), this|
|00004640| 20 72 6f 75 74 69 6e 65 | 20 64 65 74 65 63 74 73 | routine| detects|
|00004650| 20 20 2d 52 41 4b 2d 09 | 2a 2f 0a 58 2f 2a 20 77 | -RAK-.|*/.X/* w|
|00004660| 68 65 6e 20 61 20 6d 6f | 76 65 20 6f 66 66 20 74 |hen a mo|ve off t|
|00004670| 68 65 20 73 63 72 65 65 | 6e 20 68 61 73 20 6f 63 |he scree|n has oc|
|00004680| 63 75 72 72 65 64 20 61 | 6e 64 20 66 69 67 75 72 |curred a|nd figur|
|00004690| 65 73 20 6e 65 77 20 62 | 6f 72 64 65 72 73 2e 0a |es new b|orders..|
|000046a0| 58 20 20 20 46 6f 72 63 | 65 20 66 6f 72 63 73 65 |X Forc|e forcse|
|000046b0| 73 20 74 68 65 20 70 61 | 6e 65 6c 20 62 6f 75 6e |s the pa|nel boun|
|000046c0| 64 73 20 74 6f 20 62 65 | 20 72 65 63 61 6c 63 75 |ds to be| recalcu|
|000046d0| 6c 61 74 65 64 2c 20 75 | 73 65 66 75 6c 20 66 6f |lated, u|seful fo|
|000046e0| 72 20 27 57 27 68 65 72 | 65 2e 20 2a 2f 0a 58 69 |r 'W'her|e. */.Xi|
|000046f0| 6e 74 20 67 65 74 5f 70 | 61 6e 65 6c 28 79 2c 20 |nt get_p|anel(y, |
|00004700| 78 2c 20 66 6f 72 63 65 | 29 0a 58 69 6e 74 20 79 |x, force|).Xint y|
|00004710| 2c 20 78 2c 20 66 6f 72 | 63 65 3b 0a 58 7b 0a 58 |, x, for|ce;.X{.X|
|00004720| 20 20 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 70 | regist|er int p|
|00004730| 72 6f 77 2c 20 70 63 6f | 6c 3b 0a 58 20 20 72 65 |row, pco|l;.X re|
|00004740| 67 69 73 74 65 72 20 69 | 6e 74 20 70 61 6e 65 6c |gister i|nt panel|
|00004750| 3b 0a 58 0a 58 20 20 70 | 72 6f 77 20 3d 20 70 61 |;.X.X p|row = pa|
|00004760| 6e 65 6c 5f 72 6f 77 3b | 0a 58 20 20 70 63 6f 6c |nel_row;|.X pcol|
|00004770| 20 3d 20 70 61 6e 65 6c | 5f 63 6f 6c 3b 0a 58 20 | = panel|_col;.X |
|00004780| 20 69 66 20 28 66 6f 72 | 63 65 20 7c 7c 20 28 79 | if (for|ce || (y|
|00004790| 20 3c 20 70 61 6e 65 6c | 5f 72 6f 77 5f 6d 69 6e | < panel|_row_min|
|000047a0| 20 2b 20 32 29 20 7c 7c | 20 28 79 20 3e 20 70 61 | + 2) ||| (y > pa|
|000047b0| 6e 65 6c 5f 72 6f 77 5f | 6d 61 78 20 2d 20 32 29 |nel_row_|max - 2)|
|000047c0| 29 0a 58 20 20 20 20 7b | 0a 58 20 20 20 20 20 20 |).X {|.X |
|000047d0| 70 72 6f 77 20 3d 20 28 | 28 79 20 2d 20 53 43 52 |prow = (|(y - SCR|
|000047e0| 45 45 4e 5f 48 45 49 47 | 48 54 2f 34 29 2f 28 53 |EEN_HEIG|HT/4)/(S|
|000047f0| 43 52 45 45 4e 5f 48 45 | 49 47 48 54 2f 32 29 29 |CREEN_HE|IGHT/2))|
|00004800| 3b 0a 58 20 20 20 20 20 | 20 69 66 20 28 70 72 6f |;.X | if (pro|
|00004810| 77 20 3e 20 6d 61 78 5f | 70 61 6e 65 6c 5f 72 6f |w > max_|panel_ro|
|00004820| 77 73 29 0a 58 09 70 72 | 6f 77 20 3d 20 6d 61 78 |ws).X.pr|ow = max|
|00004830| 5f 70 61 6e 65 6c 5f 72 | 6f 77 73 3b 0a 58 20 20 |_panel_r|ows;.X |
|00004840| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 70 72 6f | else| if (pro|
|00004850| 77 20 3c 20 30 29 0a 58 | 09 70 72 6f 77 20 3d 20 |w < 0).X|.prow = |
|00004860| 30 3b 0a 58 20 20 20 20 | 7d 0a 58 20 20 69 66 20 |0;.X |}.X if |
|00004870| 28 66 6f 72 63 65 20 7c | 7c 20 28 78 20 3c 20 70 |(force ||| (x < p|
|00004880| 61 6e 65 6c 5f 63 6f 6c | 5f 6d 69 6e 20 2b 20 33 |anel_col|_min + 3|
|00004890| 29 20 7c 7c 20 28 78 20 | 3e 20 70 61 6e 65 6c 5f |) || (x |> panel_|
|000048a0| 63 6f 6c 5f 6d 61 78 20 | 2d 20 33 29 29 0a 58 20 |col_max |- 3)).X |
|000048b0| 20 20 20 7b 0a 58 20 20 | 20 20 20 20 70 63 6f 6c | {.X | pcol|
|000048c0| 20 3d 20 28 28 78 20 2d | 20 53 43 52 45 45 4e 5f | = ((x -| SCREEN_|
|000048d0| 57 49 44 54 48 2f 34 29 | 2f 28 53 43 52 45 45 4e |WIDTH/4)|/(SCREEN|
|000048e0| 5f 57 49 44 54 48 2f 32 | 29 29 3b 0a 58 20 20 20 |_WIDTH/2|));.X |
|000048f0| 20 20 20 69 66 20 28 70 | 63 6f 6c 20 3e 20 6d 61 | if (p|col > ma|
|00004900| 78 5f 70 61 6e 65 6c 5f | 63 6f 6c 73 29 0a 58 09 |x_panel_|cols).X.|
|00004910| 70 63 6f 6c 20 3d 20 6d | 61 78 5f 70 61 6e 65 6c |pcol = m|ax_panel|
|00004920| 5f 63 6f 6c 73 3b 0a 58 | 20 20 20 20 20 20 65 6c |_cols;.X| el|
|00004930| 73 65 20 69 66 20 28 70 | 63 6f 6c 20 3c 20 30 29 |se if (p|col < 0)|
|00004940| 0a 58 09 70 63 6f 6c 20 | 3d 20 30 3b 0a 58 20 20 |.X.pcol |= 0;.X |
|00004950| 20 20 7d 0a 58 20 20 69 | 66 20 28 28 70 72 6f 77 | }.X i|f ((prow|
|00004960| 20 21 3d 20 70 61 6e 65 | 6c 5f 72 6f 77 29 20 7c | != pane|l_row) ||
|00004970| 7c 20 28 70 63 6f 6c 20 | 21 3d 20 70 61 6e 65 6c || (pcol |!= panel|
|00004980| 5f 63 6f 6c 29 29 0a 58 | 20 20 20 20 7b 0a 58 20 |_col)).X| {.X |
|00004990| 20 20 20 20 20 70 61 6e | 65 6c 5f 72 6f 77 20 3d | pan|el_row =|
|000049a0| 20 70 72 6f 77 3b 0a 58 | 20 20 20 20 20 20 70 61 | prow;.X| pa|
|000049b0| 6e 65 6c 5f 63 6f 6c 20 | 3d 20 70 63 6f 6c 3b 0a |nel_col |= pcol;.|
|000049c0| 58 20 20 20 20 20 20 70 | 61 6e 65 6c 5f 62 6f 75 |X p|anel_bou|
|000049d0| 6e 64 73 28 29 3b 0a 58 | 20 20 20 20 20 20 70 61 |nds();.X| pa|
|000049e0| 6e 65 6c 20 3d 20 54 52 | 55 45 3b 0a 58 20 20 20 |nel = TR|UE;.X |
|000049f0| 20 20 20 2f 2a 20 73 74 | 6f 70 20 6d 6f 76 65 6d | /* st|op movem|
|00004a00| 65 6e 74 20 69 66 20 61 | 6e 79 20 2a 2f 0a 58 20 |ent if a|ny */.X |
|00004a10| 20 20 20 20 20 69 66 20 | 28 66 69 6e 64 5f 62 6f | if |(find_bo|
|00004a20| 75 6e 64 29 0a 58 09 65 | 6e 64 5f 66 69 6e 64 28 |und).X.e|nd_find(|
|00004a30| 29 3b 0a 58 20 20 20 20 | 7d 0a 58 20 20 65 6c 73 |);.X |}.X els|
|00004a40| 65 0a 58 20 20 20 20 70 | 61 6e 65 6c 20 3d 20 46 |e.X p|anel = F|
|00004a50| 41 4c 53 45 3b 0a 58 20 | 20 72 65 74 75 72 6e 28 |ALSE;.X | return(|
|00004a60| 70 61 6e 65 6c 29 3b 0a | 58 7d 0a 58 0a 58 0a 58 |panel);.|X}.X.X.X|
|00004a70| 2f 2a 20 54 65 73 74 73 | 20 61 20 67 69 76 65 6e |/* Tests| a given|
|00004a80| 20 70 6f 69 6e 74 20 74 | 6f 20 73 65 65 20 69 66 | point t|o see if|
|00004a90| 20 69 74 20 69 73 20 77 | 69 74 68 69 6e 20 74 68 | it is w|ithin th|
|00004aa0| 65 20 73 63 72 65 65 6e | 20 2d 52 41 4b 2d 09 2a |e screen| -RAK-.*|
|00004ab0| 2f 0a 58 2f 2a 20 62 6f | 75 6e 64 61 72 69 65 73 |/.X/* bo|undaries|
|00004ac0| 2e 09 09 09 09 09 09 09 | 20 20 2a 2f 0a 58 69 6e |........| */.Xin|
|00004ad0| 74 20 70 61 6e 65 6c 5f | 63 6f 6e 74 61 69 6e 73 |t panel_|contains|
|00004ae0| 28 79 2c 20 78 29 0a 58 | 72 65 67 69 73 74 65 72 |(y, x).X|register|
|00004af0| 20 69 6e 74 20 79 2c 20 | 78 3b 0a 58 7b 0a 58 20 | int y, |x;.X{.X |
|00004b00| 20 69 66 20 28 28 79 20 | 3e 3d 20 70 61 6e 65 6c | if ((y |>= panel|
|00004b10| 5f 72 6f 77 5f 6d 69 6e | 29 20 26 26 20 28 79 20 |_row_min|) && (y |
|00004b20| 3c 3d 20 70 61 6e 65 6c | 5f 72 6f 77 5f 6d 61 78 |<= panel|_row_max|
|00004b30| 29 20 26 26 0a 58 20 20 | 20 20 20 20 28 78 20 3e |) &&.X | (x >|
|00004b40| 3d 20 70 61 6e 65 6c 5f | 63 6f 6c 5f 6d 69 6e 29 |= panel_|col_min)|
|00004b50| 20 26 26 20 28 78 20 3c | 3d 20 70 61 6e 65 6c 5f | && (x <|= panel_|
|00004b60| 63 6f 6c 5f 6d 61 78 29 | 29 0a 58 20 20 20 20 72 |col_max)|).X r|
|00004b70| 65 74 75 72 6e 20 28 54 | 52 55 45 29 3b 0a 58 20 |eturn (T|RUE);.X |
|00004b80| 20 65 6c 73 65 0a 58 20 | 20 20 20 72 65 74 75 72 | else.X | retur|
|00004b90| 6e 20 28 46 41 4c 53 45 | 29 3b 0a 58 7d 0a 58 0a |n (FALSE|);.X}.X.|
|00004ba0| 58 0a 58 2f 2a 20 44 69 | 73 74 61 6e 63 65 20 62 |X.X/* Di|stance b|
|00004bb0| 65 74 77 65 65 6e 20 74 | 77 6f 20 70 6f 69 6e 74 |etween t|wo point|
|00004bc0| 73 09 09 09 09 2d 52 41 | 4b 2d 09 2a 2f 0a 58 69 |s....-RA|K-.*/.Xi|
|00004bd0| 6e 74 20 64 69 73 74 61 | 6e 63 65 28 79 31 2c 20 |nt dista|nce(y1, |
|00004be0| 78 31 2c 20 79 32 2c 20 | 78 32 29 0a 58 69 6e 74 |x1, y2, |x2).Xint|
|00004bf0| 20 79 31 2c 20 78 31 2c | 20 79 32 2c 20 78 32 3b | y1, x1,| y2, x2;|
|00004c00| 0a 58 7b 0a 58 20 20 72 | 65 67 69 73 74 65 72 20 |.X{.X r|egister |
|00004c10| 69 6e 74 20 64 79 2c 20 | 64 78 3b 0a 58 0a 58 20 |int dy, |dx;.X.X |
|00004c20| 20 64 79 20 3d 20 79 31 | 20 2d 20 79 32 3b 0a 58 | dy = y1| - y2;.X|
|00004c30| 20 20 69 66 20 28 64 79 | 20 3c 20 30 29 0a 58 20 | if (dy| < 0).X |
|00004c40| 20 20 20 64 79 20 3d 20 | 2d 64 79 3b 0a 58 20 20 | dy = |-dy;.X |
|00004c50| 64 78 20 3d 20 78 31 20 | 2d 20 78 32 3b 0a 58 20 |dx = x1 |- x2;.X |
|00004c60| 20 69 66 20 28 64 78 20 | 3c 20 30 29 0a 58 20 20 | if (dx |< 0).X |
|00004c70| 20 20 64 78 20 3d 20 2d | 64 78 3b 0a 58 0a 58 20 | dx = -|dx;.X.X |
|00004c80| 20 72 65 74 75 72 6e 20 | 28 28 28 28 64 79 20 2b | return |((((dy +|
|00004c90| 20 64 78 29 20 3c 3c 20 | 31 29 20 2d 20 28 64 79 | dx) << |1) - (dy|
|00004ca0| 20 3e 20 64 78 20 3f 20 | 64 78 20 3a 20 64 79 29 | > dx ? |dx : dy)|
|00004cb0| 29 20 3e 3e 20 31 29 3b | 0a 58 7d 0a 58 0a 58 2f |) >> 1);|.X}.X.X/|
|00004cc0| 2a 20 43 68 65 63 6b 73 | 20 70 6f 69 6e 74 73 20 |* Checks| points |
|00004cd0| 6e 6f 72 74 68 2c 20 73 | 6f 75 74 68 2c 20 65 61 |north, s|outh, ea|
|00004ce0| 73 74 2c 20 61 6e 64 20 | 77 65 73 74 20 66 6f 72 |st, and |west for|
|00004cf0| 20 61 20 77 61 6c 6c 20 | 2d 52 41 4b 2d 09 2a 2f | a wall |-RAK-.*/|
|00004d00| 0a 58 2f 2a 20 6e 6f 74 | 65 20 74 68 61 74 20 79 |.X/* not|e that y|
|00004d10| 2c 78 20 69 73 20 61 6c | 77 61 79 73 20 69 6e 5f |,x is al|ways in_|
|00004d20| 62 6f 75 6e 64 73 28 29 | 2c 20 69 2e 65 2e 20 30 |bounds()|, i.e. 0|
|00004d30| 20 3c 20 79 20 3c 20 63 | 75 72 5f 68 65 69 67 68 | < y < c|ur_heigh|
|00004d40| 74 2d 31 2c 20 61 6e 64 | 0a 58 20 20 20 30 20 3c |t-1, and|.X 0 <|
|00004d50| 20 78 20 3c 20 63 75 72 | 5f 77 69 64 74 68 2d 31 | x < cur|_width-1|
|00004d60| 09 2a 2f 0a 58 69 6e 74 | 20 6e 65 78 74 5f 74 6f |.*/.Xint| next_to|
|00004d70| 5f 77 61 6c 6c 73 28 79 | 2c 20 78 29 0a 58 72 65 |_walls(y|, x).Xre|
|00004d80| 67 69 73 74 65 72 20 69 | 6e 74 20 79 2c 20 78 3b |gister i|nt y, x;|
|00004d90| 0a 58 7b 0a 58 20 20 72 | 65 67 69 73 74 65 72 20 |.X{.X r|egister |
|00004da0| 69 6e 74 20 69 3b 0a 58 | 20 20 72 65 67 69 73 74 |int i;.X| regist|
|00004db0| 65 72 20 63 61 76 65 5f | 74 79 70 65 20 2a 63 5f |er cave_|type *c_|
|00004dc0| 70 74 72 3b 0a 58 0a 58 | 20 20 69 20 3d 20 30 3b |ptr;.X.X| i = 0;|
|00004dd0| 0a 58 20 20 63 5f 70 74 | 72 20 3d 20 26 63 61 76 |.X c_pt|r = &cav|
|00004de0| 65 5b 79 2d 31 5d 5b 78 | 5d 3b 0a 58 20 20 69 66 |e[y-1][x|];.X if|
|00004df0| 20 28 63 5f 70 74 72 2d | 3e 66 76 61 6c 20 3e 3d | (c_ptr-|>fval >=|
|00004e00| 20 4d 49 4e 5f 43 41 56 | 45 5f 57 41 4c 4c 29 0a | MIN_CAV|E_WALL).|
|00004e10| 58 20 20 20 20 69 2b 2b | 3b 0a 58 20 20 63 5f 70 |X i++|;.X c_p|
|00004e20| 74 72 20 3d 20 26 63 61 | 76 65 5b 79 2b 31 5d 5b |tr = &ca|ve[y+1][|
|00004e30| 78 5d 3b 0a 58 20 20 69 | 66 20 28 63 5f 70 74 72 |x];.X i|f (c_ptr|
|00004e40| 2d 3e 66 76 61 6c 20 3e | 3d 20 4d 49 4e 5f 43 41 |->fval >|= MIN_CA|
|00004e50| 56 45 5f 57 41 4c 4c 29 | 0a 58 20 20 20 20 69 2b |VE_WALL)|.X i+|
|00004e60| 2b 3b 0a 58 20 20 63 5f | 70 74 72 20 3d 20 26 63 |+;.X c_|ptr = &c|
|00004e70| 61 76 65 5b 79 5d 5b 78 | 2d 31 5d 3b 0a 58 20 20 |ave[y][x|-1];.X |
|00004e80| 69 66 20 28 63 5f 70 74 | 72 2d 3e 66 76 61 6c 20 |if (c_pt|r->fval |
|00004e90| 3e 3d 20 4d 49 4e 5f 43 | 41 56 45 5f 57 41 4c 4c |>= MIN_C|AVE_WALL|
|00004ea0| 29 0a 58 20 20 20 20 69 | 2b 2b 3b 0a 58 20 20 63 |).X i|++;.X c|
|00004eb0| 5f 70 74 72 20 3d 20 26 | 63 61 76 65 5b 79 5d 5b |_ptr = &|cave[y][|
|00004ec0| 78 2b 31 5d 3b 0a 58 20 | 20 69 66 20 28 63 5f 70 |x+1];.X | if (c_p|
|00004ed0| 74 72 2d 3e 66 76 61 6c | 20 3e 3d 20 4d 49 4e 5f |tr->fval| >= MIN_|
|00004ee0| 43 41 56 45 5f 57 41 4c | 4c 29 0a 58 20 20 20 20 |CAVE_WAL|L).X |
|00004ef0| 69 2b 2b 3b 0a 58 0a 58 | 20 20 72 65 74 75 72 6e |i++;.X.X| return|
|00004f00| 28 69 29 3b 0a 58 7d 0a | 58 0a 58 0a 58 2f 2a 20 |(i);.X}.|X.X.X/* |
|00004f10| 43 68 65 63 6b 73 20 61 | 6c 6c 20 61 64 6a 61 63 |Checks a|ll adjac|
|00004f20| 65 6e 74 20 73 70 6f 74 | 73 20 66 6f 72 20 63 6f |ent spot|s for co|
|00004f30| 72 72 69 64 6f 72 73 09 | 09 2d 52 41 4b 2d 09 2a |rridors.|.-RAK-.*|
|00004f40| 2f 0a 58 2f 2a 20 6e 6f | 74 65 20 74 68 61 74 20 |/.X/* no|te that |
|00004f50| 79 2c 20 78 20 69 73 20 | 61 6c 77 61 79 73 20 69 |y, x is |always i|
|00004f60| 6e 5f 62 6f 75 6e 64 73 | 28 29 2c 20 68 65 6e 63 |n_bounds|(), henc|
|00004f70| 65 20 6e 6f 20 6e 65 65 | 64 20 74 6f 20 63 68 65 |e no nee|d to che|
|00004f80| 63 6b 20 74 68 61 74 0a | 58 20 20 20 6a 2c 20 6b |ck that.|X j, k|
|00004f90| 20 61 72 65 20 69 6e 5f | 62 6f 75 6e 64 73 28 29 | are in_|bounds()|
|00004fa0| 2c 20 65 76 65 6e 20 69 | 66 20 74 68 65 79 20 61 |, even i|f they a|
|00004fb0| 72 65 20 30 20 6f 72 20 | 63 75 72 5f 78 2d 31 20 |re 0 or |cur_x-1 |
|00004fc0| 69 73 20 73 74 69 6c 6c | 20 77 6f 72 6b 73 20 2a |is still| works *|
|00004fd0| 2f 0a 58 69 6e 74 20 6e | 65 78 74 5f 74 6f 5f 63 |/.Xint n|ext_to_c|
|00004fe0| 6f 72 72 28 79 2c 20 78 | 29 0a 58 72 65 67 69 73 |orr(y, x|).Xregis|
|00004ff0| 74 65 72 20 69 6e 74 20 | 79 2c 20 78 3b 0a 58 7b |ter int |y, x;.X{|
|00005000| 0a 58 20 20 72 65 67 69 | 73 74 65 72 20 69 6e 74 |.X regi|ster int|
|00005010| 20 6b 2c 20 6a 2c 20 69 | 3b 0a 58 20 20 72 65 67 | k, j, i|;.X reg|
|00005020| 69 73 74 65 72 20 63 61 | 76 65 5f 74 79 70 65 20 |ister ca|ve_type |
|00005030| 2a 63 5f 70 74 72 3b 0a | 58 0a 58 20 20 69 20 3d |*c_ptr;.|X.X i =|
|00005040| 20 30 3b 0a 58 20 20 66 | 6f 72 20 28 6a 20 3d 20 | 0;.X f|or (j = |
|00005050| 79 20 2d 20 31 3b 20 6a | 20 3c 3d 20 28 79 20 2b |y - 1; j| <= (y +|
|00005060| 20 31 29 3b 20 6a 2b 2b | 29 0a 58 20 20 20 20 66 | 1); j++|).X f|
|00005070| 6f 72 20 28 6b 20 3d 20 | 78 20 2d 20 31 3b 20 6b |or (k = |x - 1; k|
|00005080| 20 3c 3d 20 28 78 20 2b | 20 31 29 3b 20 6b 2b 2b | <= (x +| 1); k++|
|00005090| 29 0a 58 20 20 20 20 20 | 20 7b 0a 58 09 63 5f 70 |).X | {.X.c_p|
|000050a0| 74 72 20 3d 20 26 63 61 | 76 65 5b 6a 5d 5b 6b 5d |tr = &ca|ve[j][k]|
|000050b0| 3b 0a 58 09 2f 2a 20 73 | 68 6f 75 6c 64 20 66 61 |;.X./* s|hould fa|
|000050c0| 69 6c 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |il if th|ere is a|
|000050d0| 6c 72 65 61 64 79 20 61 | 20 64 6f 6f 72 20 70 72 |lready a| door pr|
|000050e0| 65 73 65 6e 74 20 2a 2f | 0a 58 09 69 66 20 28 63 |esent */|.X.if (c|
|000050f0| 5f 70 74 72 2d 3e 66 76 | 61 6c 20 3d 3d 20 43 4f |_ptr->fv|al == CO|
|00005100| 52 52 5f 46 4c 4f 4f 52 | 0a 58 09 20 20 20 20 26 |RR_FLOOR|.X. &|
|00005110| 26 20 28 63 5f 70 74 72 | 2d 3e 74 70 74 72 20 3d |& (c_ptr|->tptr =|
|00005120| 3d 20 30 20 7c 7c 20 74 | 5f 6c 69 73 74 5b 63 5f |= 0 || t|_list[c_|
|00005130| 70 74 72 2d 3e 74 70 74 | 72 5d 2e 74 76 61 6c 20 |ptr->tpt|r].tval |
|00005140| 3c 20 54 56 5f 4d 49 4e | 5f 44 4f 4f 52 53 29 29 |< TV_MIN|_DOORS))|
|00005150| 0a 58 09 20 20 69 2b 2b | 3b 0a 58 20 20 20 20 20 |.X. i++|;.X |
|00005160| 20 7d 0a 58 20 20 72 65 | 74 75 72 6e 28 69 29 3b | }.X re|turn(i);|
|00005170| 0a 58 7d 0a 58 0a 58 0a | 58 2f 2a 20 67 65 6e 65 |.X}.X.X.|X/* gene|
|00005180| 72 61 74 65 73 20 64 61 | 6d 61 67 65 20 66 6f 72 |rates da|mage for|
|00005190| 20 32 64 36 20 73 74 79 | 6c 65 20 64 69 63 65 20 | 2d6 sty|le dice |
|000051a0| 72 6f 6c 6c 73 20 2a 2f | 0a 58 69 6e 74 20 64 61 |rolls */|.Xint da|
|000051b0| 6d 72 6f 6c 6c 28 6e 75 | 6d 2c 20 73 69 64 65 73 |mroll(nu|m, sides|
|000051c0| 29 0a 58 69 6e 74 20 6e | 75 6d 2c 20 73 69 64 65 |).Xint n|um, side|
|000051d0| 73 3b 0a 58 7b 0a 58 20 | 20 72 65 67 69 73 74 65 |s;.X{.X | registe|
|000051e0| 72 20 69 6e 74 20 69 2c | 20 73 75 6d 20 3d 20 30 |r int i,| sum = 0|
|000051f0| 3b 0a 58 0a 58 20 20 66 | 6f 72 20 28 69 20 3d 20 |;.X.X f|or (i = |
|00005200| 30 3b 20 69 20 3c 20 6e | 75 6d 3b 20 69 2b 2b 29 |0; i < n|um; i++)|
|00005210| 0a 58 20 20 20 20 73 75 | 6d 20 2b 3d 20 72 61 6e |.X su|m += ran|
|00005220| 64 69 6e 74 28 73 69 64 | 65 73 29 3b 0a 58 20 20 |dint(sid|es);.X |
|00005230| 72 65 74 75 72 6e 28 73 | 75 6d 29 3b 0a 58 7d 0a |return(s|um);.X}.|
|00005240| 58 0a 58 69 6e 74 20 70 | 64 61 6d 72 6f 6c 6c 28 |X.Xint p|damroll(|
|00005250| 61 72 72 61 79 29 0a 58 | 69 6e 74 38 75 20 2a 61 |array).X|int8u *a|
|00005260| 72 72 61 79 3b 0a 58 7b | 0a 58 20 20 72 65 74 75 |rray;.X{|.X retu|
|00005270| 72 6e 20 64 61 6d 72 6f | 6c 6c 28 28 69 6e 74 29 |rn damro|ll((int)|
|00005280| 61 72 72 61 79 5b 30 5d | 2c 20 28 69 6e 74 29 61 |array[0]|, (int)a|
|00005290| 72 72 61 79 5b 31 5d 29 | 3b 0a 58 7d 0a 58 0a 58 |rray[1])|;.X}.X.X|
|000052a0| 0a 58 2f 2a 20 41 20 73 | 69 6d 70 6c 65 2c 20 66 |.X/* A s|imple, f|
|000052b0| 61 73 74 2c 20 69 6e 74 | 65 67 65 72 2d 62 61 73 |ast, int|eger-bas|
|000052c0| 65 64 20 6c 69 6e 65 2d | 6f 66 2d 73 69 67 68 74 |ed line-|of-sight|
|000052d0| 20 61 6c 67 6f 72 69 74 | 68 6d 2e 20 20 42 79 20 | algorit|hm. By |
|000052e0| 4a 6f 73 65 70 68 20 48 | 61 6c 6c 2c 0a 58 20 20 |Joseph H|all,.X |
|000052f0| 20 34 31 31 36 20 42 72 | 65 77 73 74 65 72 20 44 | 4116 Br|ewster D|
|00005300| 72 69 76 65 2c 20 52 61 | 6c 65 69 67 68 20 4e 43 |rive, Ra|leigh NC|
|00005310| 20 32 37 36 30 36 2e 20 | 20 45 6d 61 69 6c 20 74 | 27606. | Email t|
|00005320| 6f 20 6a 6e 68 40 65 63 | 65 6d 77 6c 2e 6e 63 73 |o jnh@ec|emwl.ncs|
|00005330| 75 2e 65 64 75 2e 0a 58 | 0a 58 20 20 20 52 65 74 |u.edu..X|.X Ret|
|00005340| 75 72 6e 73 20 54 52 55 | 45 20 69 66 20 61 20 6c |urns TRU|E if a l|
|00005350| 69 6e 65 20 6f 66 20 73 | 69 67 68 74 20 63 61 6e |ine of s|ight can|
|00005360| 20 62 65 20 74 72 61 63 | 65 64 20 66 72 6f 6d 20 | be trac|ed from |
|00005370| 78 30 2c 20 79 30 20 74 | 6f 20 78 31 2c 20 79 31 |x0, y0 t|o x1, y1|
|00005380| 2e 0a 58 0a 58 20 20 20 | 54 68 65 20 4c 4f 53 20 |..X.X |The LOS |
|00005390| 62 65 67 69 6e 73 20 61 | 74 20 74 68 65 20 63 65 |begins a|t the ce|
|000053a0| 6e 74 65 72 20 6f 66 20 | 74 68 65 20 74 69 6c 65 |nter of |the tile|
|000053b0| 20 5b 78 30 2c 20 79 30 | 5d 20 61 6e 64 20 65 6e | [x0, y0|] and en|
|000053c0| 64 73 20 61 74 0a 58 20 | 20 20 74 68 65 20 63 65 |ds at.X | the ce|
|000053d0| 6e 74 65 72 20 6f 66 20 | 74 68 65 20 74 69 6c 65 |nter of |the tile|
|000053e0| 20 5b 78 31 2c 20 79 31 | 5d 2e 20 20 49 66 20 6c | [x1, y1|]. If l|
|000053f0| 6f 73 28 29 20 69 73 20 | 74 6f 20 72 65 74 75 72 |os() is |to retur|
|00005400| 6e 20 54 52 55 45 2c 20 | 61 6c 6c 20 6f 66 0a 58 |n TRUE, |all of.X|
|00005410| 20 20 20 74 68 65 20 74 | 69 6c 65 73 20 74 68 69 | the t|iles thi|
|00005420| 73 20 6c 69 6e 65 20 70 | 61 73 73 65 73 20 74 68 |s line p|asses th|
|00005430| 72 6f 75 67 68 20 6d 75 | 73 74 20 62 65 20 74 72 |rough mu|st be tr|
|00005440| 61 6e 73 70 61 72 65 6e | 74 2c 20 57 49 54 48 20 |ansparen|t, WITH |
|00005450| 54 48 45 0a 58 20 20 20 | 45 58 43 45 50 54 49 4f |THE.X |EXCEPTIO|
|00005460| 4e 53 20 6f 66 20 74 68 | 65 20 73 74 61 72 74 69 |NS of th|e starti|
|00005470| 6e 67 20 61 6e 64 20 65 | 6e 64 69 6e 67 20 74 69 |ng and e|nding ti|
|00005480| 6c 65 73 2e 0a 58 0a 58 | 20 20 20 57 65 20 64 6f |les..X.X| We do|
|00005490| 6e 27 74 20 63 6f 6e 73 | 69 64 65 72 20 74 68 65 |n't cons|ider the|
|000054a0| 20 6c 69 6e 65 20 74 6f | 20 62 65 20 22 70 61 73 | line to| be "pas|
|000054b0| 73 69 6e 67 20 74 68 72 | 6f 75 67 68 22 20 61 20 |sing thr|ough" a |
|000054c0| 74 69 6c 65 20 69 66 0a | 58 20 20 20 69 74 20 6f |tile if.|X it o|
|000054d0| 6e 6c 79 20 70 61 73 73 | 65 73 20 61 63 72 6f 73 |nly pass|es acros|
|000054e0| 73 20 6f 6e 65 20 63 6f | 72 6e 65 72 20 6f 66 20 |s one co|rner of |
|000054f0| 74 68 61 74 20 74 69 6c | 65 2e 20 2a 2f 0a 58 0a |that til|e. */.X.|
|00005500| 58 2f 2a 20 42 65 63 61 | 75 73 65 20 74 68 69 73 |X/* Beca|use this|
|00005510| 20 66 75 6e 63 74 69 6f | 6e 20 75 73 65 73 20 28 | functio|n uses (|
|00005520| 73 68 6f 72 74 29 20 69 | 6e 74 73 20 66 6f 72 20 |short) i|nts for |
|00005530| 61 6c 6c 20 63 61 6c 63 | 75 6c 61 74 69 6f 6e 73 |all calc|ulations|
|00005540| 2c 20 6f 76 65 72 66 6c | 6f 77 0a 58 20 20 20 6d |, overfl|ow.X m|
|00005550| 61 79 20 6f 63 63 75 72 | 20 69 66 20 64 65 6c 74 |ay occur| if delt|
|00005560| 61 58 20 61 6e 64 20 64 | 65 6c 74 61 59 20 65 78 |aX and d|eltaY ex|
|00005570| 63 65 65 64 20 39 30 2e | 20 2a 2f 0a 58 0a 58 69 |ceed 90.| */.X.Xi|
|00005580| 6e 74 20 6c 6f 73 28 66 | 72 6f 6d 59 2c 20 66 72 |nt los(f|romY, fr|
|00005590| 6f 6d 58 2c 20 74 6f 59 | 2c 20 74 6f 58 29 0a 58 |omX, toY|, toX).X|
|000055a0| 69 6e 74 20 66 72 6f 6d | 59 2c 20 66 72 6f 6d 58 |int from|Y, fromX|
|000055b0| 2c 20 74 6f 59 2c 20 74 | 6f 58 3b 0a 58 7b 0a 58 |, toY, t|oX;.X{.X|
|000055c0| 20 20 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 74 | regist|er int t|
|000055d0| 6d 70 2c 20 64 65 6c 74 | 61 58 2c 20 64 65 6c 74 |mp, delt|aX, delt|
|000055e0| 61 59 3b 0a 58 0a 58 20 | 20 64 65 6c 74 61 58 20 |aY;.X.X | deltaX |
|000055f0| 3d 20 74 6f 58 20 2d 20 | 66 72 6f 6d 58 3b 0a 58 |= toX - |fromX;.X|
|00005600| 20 20 64 65 6c 74 61 59 | 20 3d 20 74 6f 59 20 2d | deltaY| = toY -|
|00005610| 20 66 72 6f 6d 59 3b 0a | 58 0a 58 20 20 2f 2a 20 | fromY;.|X.X /* |
|00005620| 41 64 6a 61 63 65 6e 74 | 3f 20 2a 2f 0a 58 20 20 |Adjacent|? */.X |
|00005630| 69 66 20 28 28 64 65 6c | 74 61 58 20 3c 20 32 29 |if ((del|taX < 2)|
|00005640| 20 26 26 20 28 64 65 6c | 74 61 58 20 3e 20 2d 32 | && (del|taX > -2|
|00005650| 29 20 26 26 20 28 64 65 | 6c 74 61 59 20 3c 20 32 |) && (de|ltaY < 2|
|00005660| 29 20 26 26 20 28 64 65 | 6c 74 61 59 20 3e 20 2d |) && (de|ltaY > -|
|00005670| 32 29 29 0a 58 20 20 20 | 20 72 65 74 75 72 6e 20 |2)).X | return |
|00005680| 54 52 55 45 3b 0a 58 0a | 58 20 20 2f 2a 20 48 61 |TRUE;.X.|X /* Ha|
|00005690| 6e 64 6c 65 20 74 68 65 | 20 63 61 73 65 73 20 77 |ndle the| cases w|
|000056a0| 68 65 72 65 20 64 65 6c | 74 61 58 20 6f 72 20 64 |here del|taX or d|
|000056b0| 65 6c 74 61 59 20 3d 3d | 20 30 2e 20 2a 2f 0a 58 |eltaY ==| 0. */.X|
|000056c0| 20 20 69 66 20 28 64 65 | 6c 74 61 58 20 3d 3d 20 | if (de|ltaX == |
|000056d0| 30 29 0a 58 20 20 20 20 | 7b 0a 58 20 20 20 20 20 |0).X |{.X |
|000056e0| 20 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 70 5f | registe|r int p_|
|000056f0| 79 3b 09 2f 2a 20 79 20 | 70 6f 73 69 74 69 6f 6e |y;./* y |position|
|00005700| 20 2d 2d 20 6c 6f 6f 70 | 20 76 61 72 69 61 62 6c | -- loop| variabl|
|00005710| 65 09 2a 2f 0a 58 0a 58 | 20 20 20 20 20 20 69 66 |e.*/.X.X| if|
|00005720| 20 28 64 65 6c 74 61 59 | 20 3c 20 30 29 0a 58 09 | (deltaY| < 0).X.|
|00005730| 7b 0a 58 09 20 20 74 6d | 70 20 3d 20 66 72 6f 6d |{.X. tm|p = from|
|00005740| 59 3b 0a 58 09 20 20 66 | 72 6f 6d 59 20 3d 20 74 |Y;.X. f|romY = t|
|00005750| 6f 59 3b 0a 58 09 20 20 | 74 6f 59 20 3d 20 74 6d |oY;.X. |toY = tm|
|00005760| 70 3b 0a 58 09 7d 0a 58 | 20 20 20 20 20 20 66 6f |p;.X.}.X| fo|
|00005770| 72 20 28 70 5f 79 20 3d | 20 66 72 6f 6d 59 20 2b |r (p_y =| fromY +|
|00005780| 20 31 3b 20 70 5f 79 20 | 3c 20 74 6f 59 3b 20 70 | 1; p_y |< toY; p|
|00005790| 5f 79 2b 2b 29 0a 58 09 | 69 66 20 28 63 61 76 65 |_y++).X.|if (cave|
|000057a0| 5b 70 5f 79 5d 5b 66 72 | 6f 6d 58 5d 2e 66 76 61 |[p_y][fr|omX].fva|
|000057b0| 6c 20 3e 3d 20 4d 49 4e | 5f 43 4c 4f 53 45 44 5f |l >= MIN|_CLOSED_|
|000057c0| 53 50 41 43 45 29 0a 58 | 09 20 20 72 65 74 75 72 |SPACE).X|. retur|
|000057d0| 6e 20 46 41 4c 53 45 3b | 0a 58 20 20 20 20 20 20 |n FALSE;|.X |
|000057e0| 72 65 74 75 72 6e 20 54 | 52 55 45 3b 0a 58 20 20 |return T|RUE;.X |
|000057f0| 20 20 7d 0a 58 20 20 65 | 6c 73 65 20 69 66 20 28 | }.X e|lse if (|
|00005800| 64 65 6c 74 61 59 20 3d | 3d 20 30 29 0a 58 20 20 |deltaY =|= 0).X |
|00005810| 20 20 7b 0a 58 20 20 20 | 20 20 20 72 65 67 69 73 | {.X | regis|
|00005820| 74 65 72 20 69 6e 74 20 | 70 78 3b 09 2f 2a 20 78 |ter int |px;./* x|
|00005830| 20 70 6f 73 69 74 69 6f | 6e 20 2d 2d 20 6c 6f 6f | positio|n -- loo|
|00005840| 70 20 76 61 72 69 61 62 | 6c 65 09 2a 2f 0a 58 0a |p variab|le.*/.X.|
|00005850| 58 20 20 20 20 20 20 69 | 66 20 28 64 65 6c 74 61 |X i|f (delta|
|00005860| 58 20 3c 20 30 29 0a 58 | 09 7b 0a 58 09 20 20 74 |X < 0).X|.{.X. t|
|00005870| 6d 70 20 3d 20 66 72 6f | 6d 58 3b 0a 58 09 20 20 |mp = fro|mX;.X. |
|00005880| 66 72 6f 6d 58 20 3d 20 | 74 6f 58 3b 0a 58 09 20 |fromX = |toX;.X. |
|00005890| 20 74 6f 58 20 3d 20 74 | 6d 70 3b 0a 58 09 7d 0a | toX = t|mp;.X.}.|
|000058a0| 58 20 20 20 20 20 20 66 | 6f 72 20 28 70 78 20 3d |X f|or (px =|
|000058b0| 20 66 72 6f 6d 58 20 2b | 20 31 3b 20 70 78 20 3c | fromX +| 1; px <|
|000058c0| 20 74 6f 58 3b 20 70 78 | 2b 2b 29 0a 58 09 69 66 | toX; px|++).X.if|
|000058d0| 20 28 63 61 76 65 5b 66 | 72 6f 6d 59 5d 5b 70 78 | (cave[f|romY][px|
|000058e0| 5d 2e 66 76 61 6c 20 3e | 3d 20 4d 49 4e 5f 43 4c |].fval >|= MIN_CL|
|000058f0| 4f 53 45 44 5f 53 50 41 | 43 45 29 0a 58 09 20 20 |OSED_SPA|CE).X. |
|00005900| 72 65 74 75 72 6e 20 46 | 41 4c 53 45 3b 0a 58 20 |return F|ALSE;.X |
|00005910| 20 20 20 20 20 72 65 74 | 75 72 6e 20 54 52 55 45 | ret|urn TRUE|
|00005920| 3b 0a 58 20 20 20 20 7d | 0a 58 0a 58 20 20 2f 2a |;.X }|.X.X /*|
|00005930| 20 4e 6f 77 2c 20 77 65 | 27 76 65 20 65 6c 69 6d | Now, we|'ve elim|
|00005940| 69 6e 61 74 65 64 20 61 | 6c 6c 20 74 68 65 20 64 |inated a|ll the d|
|00005950| 65 67 65 6e 65 72 61 74 | 65 20 63 61 73 65 73 2e |egenerat|e cases.|
|00005960| 0a 58 20 20 20 20 20 49 | 6e 20 74 68 65 20 63 6f |.X I|n the co|
|00005970| 6d 70 75 74 61 74 69 6f | 6e 73 20 62 65 6c 6f 77 |mputatio|ns below|
|00005980| 2c 20 64 79 20 28 6f 72 | 20 64 78 29 20 61 6e 64 |, dy (or| dx) and|
|00005990| 20 6d 20 61 72 65 20 6d | 75 6c 74 69 70 6c 69 65 | m are m|ultiplie|
|000059a0| 64 20 62 79 20 61 0a 58 | 20 20 20 20 20 73 63 61 |d by a.X| sca|
|000059b0| 6c 65 20 66 61 63 74 6f | 72 2c 20 73 63 61 6c 65 |le facto|r, scale|
|000059c0| 20 3d 20 61 62 73 28 64 | 65 6c 74 61 58 20 2a 20 | = abs(d|eltaX * |
|000059d0| 64 65 6c 74 61 59 20 2a | 20 32 29 2c 20 73 6f 20 |deltaY *| 2), so |
|000059e0| 74 68 61 74 20 77 65 20 | 63 61 6e 20 75 73 65 0a |that we |can use.|
|000059f0| 58 20 20 20 20 20 69 6e | 74 65 67 65 72 20 61 72 |X in|teger ar|
|00005a00| 69 74 68 6d 65 74 69 63 | 2e 20 2a 2f 0a 58 0a 58 |ithmetic|. */.X.X|
|00005a10| 20 20 7b 0a 58 20 20 20 | 20 72 65 67 69 73 74 65 | {.X | registe|
|00005a20| 72 20 69 6e 74 20 70 78 | 2c 09 2f 2a 20 78 20 70 |r int px|,./* x p|
|00005a30| 6f 73 69 74 69 6f 6e 09 | 09 09 09 2a 2f 0a 58 20 |osition.|...*/.X |
|00005a40| 20 20 20 20 70 5f 79 2c | 09 09 2f 2a 20 79 20 70 | p_y,|../* y p|
|00005a50| 6f 73 69 74 69 6f 6e 09 | 09 09 09 2a 2f 0a 58 20 |osition.|...*/.X |
|00005a60| 20 20 20 20 73 63 61 6c | 65 32 3b 09 09 2f 2a 20 | scal|e2;../* |
|00005a70| 61 62 6f 76 65 20 73 63 | 61 6c 65 20 66 61 63 74 |above sc|ale fact|
|00005a80| 6f 72 20 2f 20 32 09 09 | 2a 2f 0a 58 20 20 20 20 |or / 2..|*/.X |
|00005a90| 69 6e 74 20 73 63 61 6c | 65 2c 09 09 2f 2a 20 61 |int scal|e,../* a|
|00005aa0| 62 6f 76 65 20 73 63 61 | 6c 65 20 66 61 63 74 6f |bove sca|le facto|
|00005ab0| 72 09 09 09 2a 2f 0a 58 | 20 20 20 20 20 78 53 69 |r...*/.X| xSi|
|00005ac0| 67 6e 2c 09 09 2f 2a 20 | 73 69 67 6e 20 6f 66 20 |gn,../* |sign of |
|00005ad0| 64 65 6c 74 61 58 09 09 | 09 2a 2f 0a 58 20 20 20 |deltaX..|.*/.X |
|00005ae0| 20 20 79 53 69 67 6e 2c | 09 09 2f 2a 20 73 69 67 | ySign,|../* sig|
|00005af0| 6e 20 6f 66 20 64 65 6c | 74 61 59 09 09 09 2a 2f |n of del|taY...*/|
|00005b00| 0a 58 20 20 20 20 20 6d | 3b 09 09 09 2f 2a 20 73 |.X m|;.../* s|
|00005b10| 6c 6f 70 65 20 6f 72 20 | 31 2f 73 6c 6f 70 65 20 |lope or |1/slope |
|00005b20| 6f 66 20 4c 4f 53 09 09 | 2a 2f 0a 58 0a 58 20 20 |of LOS..|*/.X.X |
|00005b30| 20 20 73 63 61 6c 65 32 | 20 3d 20 61 62 73 28 64 | scale2| = abs(d|
|00005b40| 65 6c 74 61 58 20 2a 20 | 64 65 6c 74 61 59 29 3b |eltaX * |deltaY);|
|00005b50| 0a 58 20 20 20 20 73 63 | 61 6c 65 20 3d 20 73 63 |.X sc|ale = sc|
|00005b60| 61 6c 65 32 20 3c 3c 20 | 31 3b 0a 58 20 20 20 20 |ale2 << |1;.X |
|00005b70| 78 53 69 67 6e 20 3d 20 | 28 64 65 6c 74 61 58 20 |xSign = |(deltaX |
|00005b80| 3c 20 30 29 20 3f 20 2d | 31 20 3a 20 31 3b 0a 58 |< 0) ? -|1 : 1;.X|
|00005b90| 20 20 20 20 79 53 69 67 | 6e 20 3d 20 28 64 65 6c | ySig|n = (del|
|00005ba0| 74 61 59 20 3c 20 30 29 | 20 3f 20 2d 31 20 3a 20 |taY < 0)| ? -1 : |
|00005bb0| 31 3b 0a 58 0a 58 20 20 | 20 20 2f 2a 20 54 72 61 |1;.X.X | /* Tra|
|00005bc0| 76 65 6c 20 66 72 6f 6d | 20 6f 6e 65 20 65 6e 64 |vel from| one end|
|00005bd0| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 74 6f 20 | of the |line to |
|00005be0| 74 68 65 20 6f 74 68 65 | 72 2c 20 6f 72 69 65 6e |the othe|r, orien|
|00005bf0| 74 65 64 20 61 6c 6f 6e | 67 0a 58 20 20 20 20 20 |ted alon|g.X |
|00005c00| 20 20 74 68 65 20 6c 6f | 6e 67 65 72 20 61 78 69 | the lo|nger axi|
|00005c10| 73 2e 20 2a 2f 0a 58 0a | 58 20 20 20 20 69 66 20 |s. */.X.|X if |
|00005c20| 28 61 62 73 28 64 65 6c | 74 61 58 29 20 3e 3d 20 |(abs(del|taX) >= |
|00005c30| 61 62 73 28 64 65 6c 74 | 61 59 29 29 0a 58 20 20 |abs(delt|aY)).X |
|00005c40| 20 20 20 20 7b 0a 58 09 | 72 65 67 69 73 74 65 72 | {.X.|register|
|00005c50| 20 69 6e 74 20 64 79 3b | 09 09 2f 2a 20 22 66 72 | int dy;|../* "fr|
|00005c60| 61 63 74 69 6f 6e 61 6c | 22 20 79 20 70 6f 73 69 |actional|" y posi|
|00005c70| 74 69 6f 6e 09 2a 2f 0a | 58 09 2f 2a 20 57 65 20 |tion.*/.|X./* We |
|00005c80| 73 74 61 72 74 20 61 74 | 20 74 68 65 20 62 6f 72 |start at| the bor|
|00005c90| 64 65 72 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |der betw|een the |
|00005ca0| 66 69 72 73 74 20 61 6e | 64 20 73 65 63 6f 6e 64 |first an|d second|
|00005cb0| 20 74 69 6c 65 73 2c 0a | 58 09 20 20 20 77 68 65 | tiles,.|X. whe|
|00005cc0| 72 65 20 74 68 65 20 79 | 20 6f 66 66 73 65 74 20 |re the y| offset |
|00005cd0| 3d 20 2e 35 20 2a 20 73 | 6c 6f 70 65 2e 20 20 52 |= .5 * s|lope. R|
|00005ce0| 65 6d 65 6d 62 65 72 20 | 74 68 65 20 73 63 61 6c |emember |the scal|
|00005cf0| 65 0a 58 09 20 20 20 66 | 61 63 74 6f 72 2e 20 20 |e.X. f|actor. |
|00005d00| 57 65 20 68 61 76 65 3a | 0a 58 0a 58 09 20 20 20 |We have:|.X.X. |
|00005d10| 6d 20 3d 20 64 65 6c 74 | 61 59 20 2f 20 64 65 6c |m = delt|aY / del|
|00005d20| 74 61 58 20 2a 20 32 20 | 2a 20 28 64 65 6c 74 61 |taX * 2 |* (delta|
|00005d30| 59 20 2a 20 64 65 6c 74 | 61 58 29 0a 58 09 20 20 |Y * delt|aX).X. |
|00005d40| 20 20 20 3d 20 32 20 2a | 20 64 65 6c 74 61 59 20 | = 2 *| deltaY |
|00005d50| 2a 20 64 65 6c 74 61 59 | 2e 20 2a 2f 0a 58 0a 58 |* deltaY|. */.X.X|
|00005d60| 09 64 79 20 3d 20 64 65 | 6c 74 61 59 20 2a 20 64 |.dy = de|ltaY * d|
|00005d70| 65 6c 74 61 59 3b 0a 58 | 09 6d 20 3d 20 64 79 20 |eltaY;.X|.m = dy |
|00005d80| 3c 3c 20 31 3b 0a 58 09 | 70 78 20 3d 20 66 72 6f |<< 1;.X.|px = fro|
|00005d90| 6d 58 20 2b 20 78 53 69 | 67 6e 3b 0a 58 0a 58 09 |mX + xSi|gn;.X.X.|
|00005da0| 2f 2a 20 43 6f 6e 73 69 | 64 65 72 20 74 68 65 20 |/* Consi|der the |
|00005db0| 73 70 65 63 69 61 6c 20 | 63 61 73 65 20 77 68 65 |special |case whe|
|00005dc0| 72 65 20 73 6c 6f 70 65 | 20 3d 3d 20 31 2e 20 2a |re slope| == 1. *|
|00005dd0| 2f 0a 58 09 69 66 20 28 | 64 79 20 3d 3d 20 73 63 |/.X.if (|dy == sc|
|00005de0| 61 6c 65 32 29 0a 58 09 | 20 20 7b 0a 58 09 20 20 |ale2).X.| {.X. |
|00005df0| 20 20 70 5f 79 20 3d 20 | 66 72 6f 6d 59 20 2b 20 | p_y = |fromY + |
|00005e00| 79 53 69 67 6e 3b 0a 58 | 09 20 20 20 20 64 79 20 |ySign;.X|. dy |
|00005e10| 2d 3d 20 73 63 61 6c 65 | 3b 0a 58 09 20 20 7d 0a |-= scale|;.X. }.|
|00005e20| 58 09 65 6c 73 65 0a 58 | 09 20 20 70 5f 79 20 3d |X.else.X|. p_y =|
|00005e30| 20 66 72 6f 6d 59 3b 0a | 58 0a 58 09 77 68 69 6c | fromY;.|X.X.whil|
|00005e40| 65 20 28 74 6f 58 20 2d | 20 70 78 29 0a 58 09 20 |e (toX -| px).X. |
|00005e50| 20 7b 0a 58 09 20 20 20 | 20 69 66 20 28 63 61 76 | {.X. | if (cav|
|00005e60| 65 5b 70 5f 79 5d 5b 70 | 78 5d 2e 66 76 61 6c 20 |e[p_y][p|x].fval |
|00005e70| 3e 3d 20 4d 49 4e 5f 43 | 4c 4f 53 45 44 5f 53 50 |>= MIN_C|LOSED_SP|
|00005e80| 41 43 45 29 0a 58 09 20 | 20 20 20 20 20 72 65 74 |ACE).X. | ret|
|00005e90| 75 72 6e 20 46 41 4c 53 | 45 3b 0a 58 0a 58 09 20 |urn FALS|E;.X.X. |
|00005ea0| 20 20 20 64 79 20 2b 3d | 20 6d 3b 0a 58 09 20 20 | dy +=| m;.X. |
|00005eb0| 20 20 69 66 20 28 64 79 | 20 3c 20 73 63 61 6c 65 | if (dy| < scale|
|00005ec0| 32 29 0a 58 09 20 20 20 | 20 20 20 70 78 20 2b 3d |2).X. | px +=|
|00005ed0| 20 78 53 69 67 6e 3b 0a | 58 09 20 20 20 20 65 6c | xSign;.|X. el|
|00005ee0| 73 65 20 69 66 20 28 64 | 79 20 3e 20 73 63 61 6c |se if (d|y > scal|
|00005ef0| 65 32 29 0a 58 09 20 20 | 20 20 20 20 7b 0a 58 09 |e2).X. | {.X.|
|00005f00| 09 70 5f 79 20 2b 3d 20 | 79 53 69 67 6e 3b 0a 58 |.p_y += |ySign;.X|
|00005f10| 09 09 69 66 20 28 63 61 | 76 65 5b 70 5f 79 5d 5b |..if (ca|ve[p_y][|
|00005f20| 70 78 5d 2e 66 76 61 6c | 20 3e 3d 20 4d 49 4e 5f |px].fval| >= MIN_|
|00005f30| 43 4c 4f 53 45 44 5f 53 | 50 41 43 45 29 0a 58 09 |CLOSED_S|PACE).X.|
|00005f40| 09 20 20 72 65 74 75 72 | 6e 20 46 41 4c 53 45 3b |. retur|n FALSE;|
|00005f50| 0a 58 09 09 70 78 20 2b | 3d 20 78 53 69 67 6e 3b |.X..px +|= xSign;|
|00005f60| 0a 58 09 09 64 79 20 2d | 3d 20 73 63 61 6c 65 3b |.X..dy -|= scale;|
|00005f70| 0a 58 09 20 20 20 20 20 | 20 7d 0a 58 09 20 20 20 |.X. | }.X. |
|00005f80| 20 65 6c 73 65 0a 58 09 | 20 20 20 20 20 20 7b 0a | else.X.| {.|
|00005f90| 58 09 09 2f 2a 20 54 68 | 69 73 20 69 73 20 74 68 |X../* Th|is is th|
|00005fa0| 65 20 63 61 73 65 2c 20 | 64 79 20 3d 3d 20 73 63 |e case, |dy == sc|
|00005fb0| 61 6c 65 32 2c 20 77 68 | 65 72 65 20 74 68 65 20 |ale2, wh|ere the |
|00005fc0| 4c 4f 53 0a 58 09 09 20 | 20 20 65 78 61 63 74 6c |LOS.X.. | exactl|
|00005fd0| 79 20 6d 65 65 74 73 20 | 74 68 65 20 63 6f 72 6e |y meets |the corn|
|00005fe0| 65 72 20 6f 66 20 61 20 | 74 69 6c 65 2e 20 2a 2f |er of a |tile. */|
|00005ff0| 0a 58 09 09 70 78 20 2b | 3d 20 78 53 69 67 6e 3b |.X..px +|= xSign;|
|00006000| 0a 58 09 09 70 5f 79 20 | 2b 3d 20 79 53 69 67 6e |.X..p_y |+= ySign|
|00006010| 3b 0a 58 09 09 64 79 20 | 2d 3d 20 73 63 61 6c 65 |;.X..dy |-= scale|
|00006020| 3b 0a 58 09 20 20 20 20 | 20 20 7d 0a 58 09 20 20 |;.X. | }.X. |
|00006030| 7d 0a 58 09 72 65 74 75 | 72 6e 20 54 52 55 45 3b |}.X.retu|rn TRUE;|
|00006040| 0a 58 20 20 20 20 20 20 | 7d 0a 58 20 20 20 20 65 |.X |}.X e|
|00006050| 6c 73 65 0a 58 20 20 20 | 20 20 20 7b 0a 58 09 72 |lse.X | {.X.r|
|00006060| 65 67 69 73 74 65 72 20 | 69 6e 74 20 64 78 3b 09 |egister |int dx;.|
|00006070| 09 2f 2a 20 22 66 72 61 | 63 74 69 6f 6e 61 6c 22 |./* "fra|ctional"|
|00006080| 20 78 20 70 6f 73 69 74 | 69 6f 6e 09 2a 2f 0a 58 | x posit|ion.*/.X|
|00006090| 09 64 78 20 3d 20 64 65 | 6c 74 61 58 20 2a 20 64 |.dx = de|ltaX * d|
|000060a0| 65 6c 74 61 58 3b 0a 58 | 09 6d 20 3d 20 64 78 20 |eltaX;.X|.m = dx |
|000060b0| 3c 3c 20 31 3b 0a 58 0a | 58 09 70 5f 79 20 3d 20 |<< 1;.X.|X.p_y = |
|000060c0| 66 72 6f 6d 59 20 2b 20 | 79 53 69 67 6e 3b 0a 58 |fromY + |ySign;.X|
|000060d0| 09 69 66 20 28 64 78 20 | 3d 3d 20 73 63 61 6c 65 |.if (dx |== scale|
|000060e0| 32 29 0a 58 09 20 20 7b | 0a 58 09 20 20 20 20 70 |2).X. {|.X. p|
|000060f0| 78 20 3d 20 66 72 6f 6d | 58 20 2b 20 78 53 69 67 |x = from|X + xSig|
|00006100| 6e 3b 0a 58 09 20 20 20 | 20 64 78 20 2d 3d 20 73 |n;.X. | dx -= s|
|00006110| 63 61 6c 65 3b 0a 58 09 | 20 20 7d 0a 58 09 65 6c |cale;.X.| }.X.el|
|00006120| 73 65 0a 58 09 20 20 70 | 78 20 3d 20 66 72 6f 6d |se.X. p|x = from|
|00006130| 58 3b 0a 58 0a 58 09 77 | 68 69 6c 65 20 28 74 6f |X;.X.X.w|hile (to|
|00006140| 59 20 2d 20 70 5f 79 29 | 0a 58 09 20 20 7b 0a 58 |Y - p_y)|.X. {.X|
|00006150| 09 20 20 20 20 69 66 20 | 28 63 61 76 65 5b 70 5f |. if |(cave[p_|
|00006160| 79 5d 5b 70 78 5d 2e 66 | 76 61 6c 20 3e 3d 20 4d |y][px].f|val >= M|
|00006170| 49 4e 5f 43 4c 4f 53 45 | 44 5f 53 50 41 43 45 29 |IN_CLOSE|D_SPACE)|
|00006180| 0a 58 09 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |.X. | return |
|00006190| 46 41 4c 53 45 3b 0a 58 | 09 20 20 20 20 64 78 20 |FALSE;.X|. dx |
|000061a0| 2b 3d 20 6d 3b 0a 58 09 | 20 20 20 20 69 66 20 28 |+= m;.X.| if (|
|000061b0| 64 78 20 3c 20 73 63 61 | 6c 65 32 29 0a 58 09 20 |dx < sca|le2).X. |
|000061c0| 20 20 20 20 20 70 5f 79 | 20 2b 3d 20 79 53 69 67 | p_y| += ySig|
|000061d0| 6e 3b 0a 58 09 20 20 20 | 20 65 6c 73 65 20 69 66 |n;.X. | else if|
|000061e0| 20 28 64 78 20 3e 20 73 | 63 61 6c 65 32 29 0a 58 | (dx > s|cale2).X|
|000061f0| 09 20 20 20 20 20 20 7b | 0a 58 09 09 70 78 20 2b |. {|.X..px +|
|00006200| 3d 20 78 53 69 67 6e 3b | 0a 58 09 09 69 66 20 28 |= xSign;|.X..if (|
|00006210| 63 61 76 65 5b 70 5f 79 | 5d 5b 70 78 5d 2e 66 76 |cave[p_y|][px].fv|
|00006220| 61 6c 20 3e 3d 20 4d 49 | 4e 5f 43 4c 4f 53 45 44 |al >= MI|N_CLOSED|
|00006230| 5f 53 50 41 43 45 29 0a | 58 09 09 20 20 72 65 74 |_SPACE).|X.. ret|
|00006240| 75 72 6e 20 46 41 4c 53 | 45 3b 0a 58 09 09 70 5f |urn FALS|E;.X..p_|
|00006250| 79 20 2b 3d 20 79 53 69 | 67 6e 3b 0a 58 09 09 64 |y += ySi|gn;.X..d|
|00006260| 78 20 2d 3d 20 73 63 61 | 6c 65 3b 0a 58 09 20 20 |x -= sca|le;.X. |
|00006270| 20 20 20 20 7d 0a 58 09 | 20 20 20 20 65 6c 73 65 | }.X.| else|
|00006280| 0a 58 09 20 20 20 20 20 | 20 7b 0a 58 09 09 70 78 |.X. | {.X..px|
|00006290| 20 2b 3d 20 78 53 69 67 | 6e 3b 0a 58 09 09 70 5f | += xSig|n;.X..p_|
|000062a0| 79 20 2b 3d 20 79 53 69 | 67 6e 3b 0a 58 09 09 64 |y += ySi|gn;.X..d|
|000062b0| 78 20 2d 3d 20 73 63 61 | 6c 65 3b 0a 58 09 20 20 |x -= sca|le;.X. |
|000062c0| 20 20 20 20 7d 0a 58 09 | 20 20 7d 0a 58 09 72 65 | }.X.| }.X.re|
|000062d0| 74 75 72 6e 20 54 52 55 | 45 3b 0a 58 20 20 20 20 |turn TRU|E;.X |
|000062e0| 20 20 7d 0a 58 20 20 7d | 0a 58 7d 0a 58 0a 58 0a | }.X }|.X}.X.X.|
|000062f0| 58 2f 2a 20 52 65 74 75 | 72 6e 73 20 73 79 6d 62 |X/* Retu|rns symb|
|00006300| 6f 6c 20 66 6f 72 20 67 | 69 76 65 6e 20 72 6f 77 |ol for g|iven row|
|00006310| 2c 20 63 6f 6c 75 6d 6e | 09 09 09 2d 52 41 4b 2d |, column|...-RAK-|
|00006320| 09 2a 2f 0a 58 75 6e 73 | 69 67 6e 65 64 20 63 68 |.*/.Xuns|igned ch|
|00006330| 61 72 20 6c 6f 63 5f 73 | 79 6d 62 6f 6c 28 79 2c |ar loc_s|ymbol(y,|
|00006340| 20 78 29 0a 58 69 6e 74 | 20 79 2c 20 78 3b 0a 58 | x).Xint| y, x;.X|
|00006350| 7b 0a 58 20 20 72 65 67 | 69 73 74 65 72 20 63 61 |{.X reg|ister ca|
|00006360| 76 65 5f 74 79 70 65 20 | 2a 63 61 76 65 5f 70 74 |ve_type |*cave_pt|
|00006370| 72 3b 0a 58 20 20 72 65 | 67 69 73 74 65 72 20 73 |r;.X re|gister s|
|00006380| 74 72 75 63 74 20 66 6c | 61 67 73 20 2a 66 5f 70 |truct fl|ags *f_p|
|00006390| 74 72 3b 0a 58 0a 58 20 | 20 63 61 76 65 5f 70 74 |tr;.X.X | cave_pt|
|000063a0| 72 20 3d 20 26 63 61 76 | 65 5b 79 5d 5b 78 5d 3b |r = &cav|e[y][x];|
|000063b0| 0a 58 20 20 66 5f 70 74 | 72 20 3d 20 26 70 79 2e |.X f_pt|r = &py.|
|000063c0| 66 6c 61 67 73 3b 0a 58 | 0a 58 20 20 69 66 20 28 |flags;.X|.X if (|
|000063d0| 28 63 61 76 65 5f 70 74 | 72 2d 3e 63 70 74 72 20 |(cave_pt|r->cptr |
|000063e0| 3d 3d 20 31 29 20 26 26 | 20 28 21 66 69 6e 64 5f |== 1) &&| (!find_|
|000063f0| 66 6c 61 67 20 7c 7c 20 | 66 69 6e 64 5f 70 72 73 |flag || |find_prs|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.