Mercurial > hg > early-roguelike
comparison rogue3/rogue.h @ 285:17005af49963
Fix some potential problems detected by clang.
Most of these are unnecessary comparisons and functions returning the
wrong types.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 23 Sep 2017 09:47:00 -0400 |
| parents | e7862a021609 |
| children |
comparison
equal
deleted
inserted
replaced
| 284:6376b514a30b | 285:17005af49963 |
|---|---|
| 467 extern char * p_guess[MAXPOTIONS]; /* Players guess at what potion is */ | 467 extern char * p_guess[MAXPOTIONS]; /* Players guess at what potion is */ |
| 468 extern int p_know[MAXPOTIONS]; /* Does he know what a potion does */ | 468 extern int p_know[MAXPOTIONS]; /* Does he know what a potion does */ |
| 469 extern struct magic_item p_magic[MAXPOTIONS]; /* Names and chances for potions */ | 469 extern struct magic_item p_magic[MAXPOTIONS]; /* Names and chances for potions */ |
| 470 extern struct thing player; /* The rogue */ | 470 extern struct thing player; /* The rogue */ |
| 471 extern int playing; /* True until he quits */ | 471 extern int playing; /* True until he quits */ |
| 472 extern unsigned char prbuf[80]; /* Buffer for sprintfs */ | 472 extern char prbuf[80]; /* Buffer for sprintfs */ |
| 473 extern int purse; /* How much gold the rogue has */ | 473 extern int purse; /* How much gold the rogue has */ |
| 474 extern int quiet; /* Number of quiet turns */ | 474 extern int quiet; /* Number of quiet turns */ |
| 475 extern char * r_guess[MAXRINGS]; /* Players guess at what ring is */ | 475 extern char * r_guess[MAXRINGS]; /* Players guess at what ring is */ |
| 476 extern int r_know[MAXRINGS]; /* Does he know what a ring does */ | 476 extern int r_know[MAXRINGS]; /* Does he know what a ring does */ |
| 477 extern struct magic_item r_magic[MAXRINGS]; /* Names and chances for rings */ | 477 extern struct magic_item r_magic[MAXRINGS]; /* Names and chances for rings */ |
