From: John Boyle Date: Thu, 8 Jun 2017 15:55:22 +0000 (-0700) Subject: Correct the definition of SETBIT. X-Git-Tag: 1.1~493 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=c8a231275555289cbfe215e7a4f49930eff691f2 Correct the definition of SETBIT. The semantics were first changed in aef60929 (technically broken in that commit as well). Luckily, it seems not to be used much. --- diff --git a/misc.c b/misc.c index 6b9e761..cfca544 100644 --- a/misc.c +++ b/misc.c @@ -606,7 +606,7 @@ long ATDWRF(long where) long SETBIT(long bit) /* Returns 2**bit for use in constructing bit-masks. */ { - return(2 << bit); + return(1 << bit); } bool TSTBIT(long mask, int bit)