Fix str[c]spn off by one error.
[dragonfly.git] / games / hack / hack.Decl.c
blobfc78113436cfb133a8c62f201f7706a9366c8b75
1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* hack.Decl.c - version 1.0.3 */
3 /* $DragonFly: src/games/hack/hack.Decl.c,v 1.4 2006/08/21 19:45:32 pavalos Exp $ */
5 #include "hack.h"
6 char nul[40]; /* contains zeros */
7 char plname[PL_NSIZ]; /* player name */
8 char lock[PL_NSIZ+4] = "1lock"; /* long enough for login name .99 */
10 boolean in_mklev, restoring;
12 struct rm levl[COLNO][ROWNO]; /* level map */
13 #ifndef QUEST
14 struct mkroom rooms[MAXNROFROOMS+1];
15 coord doors[DOORMAX];
16 #endif /* QUEST */
17 struct monst *fmon = 0;
18 struct trap *ftrap = 0;
19 struct gold *fgold = 0;
20 struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0,
21 *uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0,
22 *uleft = 0, *uchain = 0, *uball = 0;
23 struct flag flags;
24 struct you u;
25 struct monst youmonst; /* dummy; used as return value for boomhit */
27 xchar dlevel = 1;
28 xchar xupstair, yupstair, xdnstair, ydnstair;
29 const char *save_cm, *killer, *nomovemsg;
31 long moves = 1;
32 long wailmsg = 0;
34 int multi = 0;
35 char genocided[60];
36 char fut_geno[60];
38 xchar curx,cury;
39 xchar seelx, seehx, seely, seehy; /* corners of lit room */
41 coord bhitpos;
43 char quitchars[] = " \r\n\033";