X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=funcs.h;h=deb401065dfaa5239aa845413ac34e67509ef940;hb=196a9e1a4960e01dcf4af9aef01a8daf3b5cbbc8;hp=e0cec9060b0668afdd247e4a3f0d4f86917735cf;hpb=42189d79d7b33d5543688d77fa5e7b209452b8d1;p=open-adventure.git diff --git a/funcs.h b/funcs.h index e0cec90..deb4010 100644 --- a/funcs.h +++ b/funcs.h @@ -23,12 +23,12 @@ #define CNDBIT(L,N) (TSTBIT(COND[L],N)) #define FORCED(LOC) (COND[LOC] == 2) #define DARK(DUMMY) ((!CNDBIT(LOC,0)) && (PROP[LAMP] == 0 || !HERE(LAMP))) -#define PCT(N) (RAN(100) < (N)) +#define PCT(N) (randrange(100) < (N)) #define GSTONE(OBJ) ((OBJ) == EMRALD || (OBJ) == RUBY || (OBJ) == AMBER || (OBJ) == SAPPH) #define FOREST(LOC) ((LOC) >= 145 && (LOC) <= 166) #define VOCWRD(LETTRS,SECT) (VOCAB(MAKEWD(LETTRS),SECT)) -/* The following two functions were added to fix a bug (game.clock1 decremented +/* The following two functions were added to fix a bug (CLOCK1 decremented * while in forest). They should probably be replaced by using another * "cond" bit. For now, however, a quick fix... OUTSID(LOC) is true if * LOC is outside, INDEEP(LOC) is true if LOC is "deep" in the cave (hall