X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=b79c5f91cf02aecb0c60737037fa9958ebe36524;hp=2e67f3843a7a01e46cd4993f3af60c17b7663246;hb=4df411e3cd3cc20be5c9fc896da749be643783d1;hpb=e915733375580be35ab04e70dd080fea59586dd8 diff --git a/rogue.h b/rogue.h index 2e67f38..b79c5f9 100644 --- a/rogue.h +++ b/rogue.h @@ -72,7 +72,7 @@ #define o_charges o_ac #define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD) #define rndchoice(a) (a[rnd(sizeof(a)/sizeof((a)[0]))]) - +#define hash(i) ((unsigned)(i)*2654435761u) /* * Things that appear on the screens */