From 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 30 May 1995 03:37:36 +0000 Subject: Remove trailing whitespace. --- games/hack/Makefile | 2 +- games/hack/config.h | 2 +- games/hack/hack.engrave.c | 2 +- games/hack/hack.fight.c | 2 +- games/hack/hack.h | 2 +- games/hack/hack.mklev.c | 2 +- games/hack/hack.mkobj.c | 2 +- games/hack/hack.o_init.c | 2 +- games/hack/hack.options.c | 2 +- games/hack/hack.potion.c | 6 +++--- games/hack/hack.read.c | 2 +- games/hack/hack.shk.c | 4 ++-- games/hack/hack.termcap.c | 2 +- games/hack/hack.unix.c | 4 ++-- 14 files changed, 18 insertions(+), 18 deletions(-) (limited to 'games/hack') diff --git a/games/hack/Makefile b/games/hack/Makefile index b5affcf..6e9511c 100644 --- a/games/hack/Makefile +++ b/games/hack/Makefile @@ -24,7 +24,7 @@ hack.onames.h: makedefs def.objects.h makedefs: makedefs.c ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c -beforeinstall: +beforeinstall: install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ ${DESTDIR}/var/games/hackdir/perm install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ diff --git a/games/hack/config.h b/games/hack/config.h index f382937..c4b78a7 100644 --- a/games/hack/config.h +++ b/games/hack/config.h @@ -57,7 +57,7 @@ */ /* #define MAIL */ #define DEF_MAILREADER _PATH_MAIL /* or e.g. /bin/mail */ -#define MAILCKFREQ 100 +#define MAILCKFREQ 100 #define SHELL /* do not delete the '!' command */ diff --git a/games/hack/hack.engrave.c b/games/hack/hack.engrave.c index dc16c39..d5ea219 100644 --- a/games/hack/hack.engrave.c +++ b/games/hack/hack.engrave.c @@ -207,7 +207,7 @@ register struct obj *otmp; if(type == BURN) otmp->spe++; return(0); } - + switch(type) { case DUST: case BURN: diff --git a/games/hack/hack.fight.c b/games/hack/hack.fight.c index ede886d..9e07ece 100644 --- a/games/hack/hack.fight.c +++ b/games/hack/hack.fight.c @@ -93,7 +93,7 @@ monstone(mdef) register struct monst *mdef; { } mondead(mdef); } - + fightm(mtmp) register struct monst *mtmp; { register struct monst *mon; diff --git a/games/hack/hack.h b/games/hack/hack.h index 58c0283..090ef2f 100644 --- a/games/hack/hack.h +++ b/games/hack/hack.h @@ -42,7 +42,7 @@ extern xchar dlevel; #define ON 1 #define OFF 0 -extern struct obj *invent, *uwep, *uarm, *uarm2, *uarmh, *uarms, *uarmg, +extern struct obj *invent, *uwep, *uarm, *uarm2, *uarmh, *uarms, *uarmg, *uleft, *uright, *fcobj; extern struct obj *uchain; /* defined iff PUNISHED */ extern struct obj *uball; /* defined if PUNISHED */ diff --git a/games/hack/hack.mklev.c b/games/hack/hack.mklev.c index 8904021..236f832 100644 --- a/games/hack/hack.mklev.c +++ b/games/hack/hack.mklev.c @@ -221,7 +221,7 @@ register int lowx,lowy,hix,hiy; /* walk down since rscnt and rsmax change */ for(rsp = &rs[rsmax-1]; rsp >= rs; rsp--) { - + if((lx = rsp->rlx) > hix || (ly = rsp->rly) > hiy || (hx = rsp->rhx) < lowx || (hy = rsp->rhy) < lowy) continue; diff --git a/games/hack/hack.mkobj.c b/games/hack/hack.mkobj.c index 18a6914..6fe23ac 100644 --- a/games/hack/hack.mkobj.c +++ b/games/hack/hack.mkobj.c @@ -40,7 +40,7 @@ mkobj(let) { ) ); } - + struct obj zeroobj; diff --git a/games/hack/hack.o_init.c b/games/hack/hack.o_init.c index 37b33ae..25c6405 100644 --- a/games/hack/hack.o_init.c +++ b/games/hack/hack.o_init.c @@ -18,7 +18,7 @@ register char ch; init_objects(){ register int i, j, first, last, sum, end; register char let, *tmp; - /* init base; if probs given check that they add up to 100, + /* init base; if probs given check that they add up to 100, otherwise compute probs; shuffle descriptions */ end = SIZE(objects); first = 0; diff --git a/games/hack/hack.options.c b/games/hack/hack.options.c index ed95de3..477d08b 100644 --- a/games/hack/hack.options.c +++ b/games/hack/hack.options.c @@ -45,7 +45,7 @@ boolean from_env; if(*opts == '!') opts++; else opts += 2; negated = !negated; } - + if(!strncmp(opts,"standout",8)) { flags.standout = !negated; return; diff --git a/games/hack/hack.potion.c b/games/hack/hack.potion.c index c860299..08593ab 100644 --- a/games/hack/hack.potion.c +++ b/games/hack/hack.potion.c @@ -148,7 +148,7 @@ dodrink() { Blind += rn1(100,250); seeoff(0); break; - case POT_GAIN_LEVEL: + case POT_GAIN_LEVEL: pluslvl(); break; case POT_EXTRA_HEALING: @@ -280,7 +280,7 @@ register struct obj *obj; case POT_BLINDNESS: mon->mblinded |= 64 + rn2(64); break; -/* +/* case POT_GAIN_LEVEL: case POT_LEVITATION: case POT_FRUIT_JUICE: @@ -332,7 +332,7 @@ register struct obj *obj; Blind += rnd(5); seeoff(0); break; -/* +/* case POT_GAIN_LEVEL: case POT_LEVITATION: case POT_FRUIT_JUICE: diff --git a/games/hack/hack.read.c b/games/hack/hack.read.c index 5c0de3a..0ea1c4f 100644 --- a/games/hack/hack.read.c +++ b/games/hack/hack.read.c @@ -295,7 +295,7 @@ doread() { known = TRUE; pline("You smell %s close nearby.", confused ? "something" : "food"); - + } else { known = TRUE; cls(); diff --git a/games/hack/hack.shk.c b/games/hack/hack.shk.c index 1478b1d..340a9b7 100644 --- a/games/hack/hack.shk.c +++ b/games/hack/hack.shk.c @@ -140,7 +140,7 @@ register roomno = inroom(u.ux,u.uy); (u.uinshop != roomno + 1 || shlevel != dlevel || !shopkeeper)) { if(shopkeeper) { if(ESHK(shopkeeper)->billct) { - if(inroom(shopkeeper->mx, shopkeeper->my) + if(inroom(shopkeeper->mx, shopkeeper->my) == u.uinshop - 1) /* ab@unido */ pline("Somehow you escaped the shop without paying!"); addupbill(); @@ -361,7 +361,7 @@ int pass, tmp; } return(1); } - + if(!ESHK(shkp)->billct){ pline("You do not owe %s anything.", monnam(shkp)); if(!u.ugold){ diff --git a/games/hack/hack.termcap.c b/games/hack/hack.termcap.c index e94d672..190996d 100644 --- a/games/hack/hack.termcap.c +++ b/games/hack/hack.termcap.c @@ -36,7 +36,7 @@ startup() error("Unknown terminal type: %s.", term); if(pc = tgetstr("pc", &tbufptr)) PC = *pc; - if(!(BC = tgetstr("bc", &tbufptr))) { + if(!(BC = tgetstr("bc", &tbufptr))) { if(!tgetflag("bs")) error("Terminal must backspace."); BC = tbufptr; diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c index 7e84c0c..88e743f 100644 --- a/games/hack/hack.unix.c +++ b/games/hack/hack.unix.c @@ -245,7 +245,7 @@ gotlock: error("cannot close lock"); } } -} +} #ifdef MAIL @@ -393,7 +393,7 @@ boolean away; md->my = fy; } break; - } + } } tmp_at(-1,-1); /* close call */ } -- cgit v1.1