X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rogue.h;h=f426f9e126d87ce7b81902b4248c64f109b35e3b;hp=0281b1d78b06f83e1f0969accbcac7798c6e3889;hb=9c3c378b5c998e689cefd9cad3e2deb863cbcefa;hpb=d2304f95be17b49e9c594615e83fff6e9ca5d08b diff --git a/rogue.h b/rogue.h index 0281b1d..f426f9e 100644 --- a/rogue.h +++ b/rogue.h @@ -48,7 +48,7 @@ #define otherwise break;default #define until(expr) while(!(expr)) #define ce(a, b) ((a).x == (b).x && (a).y == (b).y) -#define draw(window) (wrefresh(window),usleep(50000)) +#define draw(window) (wrefresh(window),usleep(20000)) #define hero player.t_pos #define pstats player.t_stats #define pack player.t_pack @@ -71,6 +71,7 @@ #define newgrp() ++group #define o_charges o_ac #define ISMULT(type) (type == POTION || type == SCROLL || type == FOOD) +#define rndchoice(a) (a[rnd(sizeof(a)/sizeof((a)[0]))]) /* * Things that appear on the screens