pull/7/head
kongju 2 years ago
commit 37f156ec95

@ -9,7 +9,7 @@
*/ */
#include "hack.h" #include "hack.h"
#include "artifact.h" #include "artifact.h"
static boolean unconstrain_map(void); static boolean unconstrain_map(void);
static void reconstrain_map(void); static void reconstrain_map(void);

@ -3,7 +3,7 @@
/*-Copyright (c) Michael Allison, 2012. */ /*-Copyright (c) Michael Allison, 2012. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
#include "hack.h" #include "hack.h"
static boolean rm_waslit(void); static boolean rm_waslit(void);
static void mkcavepos(coordxy, coordxy, int, boolean, boolean); static void mkcavepos(coordxy, coordxy, int, boolean, boolean);

@ -19,7 +19,7 @@
* interface. * interface.
* *
* The display system deals with an abstraction called a glyph. Anything * The display system deals with an abstraction called a glyph. Anything
* that could possibly be displayed has a unique glyph identifier. * that could possibly be displayed has a unique glyph identifier.
* *
* What is seen on the screen is a combination of what the hero remembers * What is seen on the screen is a combination of what the hero remembers
* and what the hero currently sees. Objects and dungeon features (walls * and what the hero currently sees. Objects and dungeon features (walls

@ -26,7 +26,7 @@ typedef struct dlb_procs {
int (*dlb_fread_proc)(char *, int, int, DLB_P); int (*dlb_fread_proc)(char *, int, int, DLB_P);
int (*dlb_fseek_proc)(DLB_P, long, int); int (*dlb_fseek_proc)(DLB_P, long, int);
char *(*dlb_fgets_proc)(char *, int, DLB_P); char *(*dlb_fgets_proc)(char *, int, DLB_P);
int (*dlb_fgetc_proc)(DLB_P); int (*dlb_fgetc_proc)(DLB_P);
long (*dlb_ftell_proc)(DLB_P); long (*dlb_ftell_proc)(DLB_P);
} dlb_procs_t; } dlb_procs_t;

@ -26,7 +26,7 @@ static void temperature_change_msg(schar);
/* the #drop command: drop one inventory item */ /* the #drop command: drop one inventory item */
int int
dodrop(void) dodrop(void)
{ {
int result; int result;

@ -28,7 +28,7 @@ static void do_oname(struct obj *);
static char *docall_xname(struct obj *); static char *docall_xname(struct obj *);
static void namefloorobj(void); static void namefloorobj(void);
extern const char what_is_an_unknown_object[]; /* from pager.c */ extern const char what_is_an_unknown_object[]; /* from pager.c */
#define NUMMBUF 5 #define NUMMBUF 5

@ -32,7 +32,7 @@ static int Shirt_on(void);
static void dragon_armor_handling(struct obj *, boolean, boolean); static void dragon_armor_handling(struct obj *, boolean, boolean);
static void Amulet_on(void); static void Amulet_on(void);
static void learnring(struct obj *, boolean); static void learnring(struct obj *, boolean);
static void adjust_attrib(struct obj *, int, int); static void adjust_attrib(struct obj *, int, int);
static void Ring_off_or_gone(struct obj *, boolean); static void Ring_off_or_gone(struct obj *, boolean);
static int select_off(struct obj *); static int select_off(struct obj *);
static struct obj *do_takeoff(void); static struct obj *do_takeoff(void);

@ -34,7 +34,7 @@ free_edog(struct monst *mtmp)
{ {
if (mtmp->mextra && EDOG(mtmp)) { if (mtmp->mextra && EDOG(mtmp)) {
free((genericptr_t) EDOG(mtmp)); free((genericptr_t) EDOG(mtmp));
EDOG(mtmp) = (struct edog *) 0; EDOG(mtmp) = (struct edog *) 0;
} }
mtmp->mtame = 0; mtmp->mtame = 0;
} }

@ -33,7 +33,7 @@ droppables(struct monst *mon)
* be considered a duplicate and get treated as a normal candidate * be considered a duplicate and get treated as a normal candidate
* for dropping. * for dropping.
* *
* This could be 'auto', but then 'gcc -O2' warns that this function * This could be 'auto', but then 'gcc -O2' warns that this function
* might return the address of a local variable. It's mistaken, * might return the address of a local variable. It's mistaken,
* &dummy is never returned. 'static' is simplest way to shut it up. * &dummy is never returned. 'static' is simplest way to shut it up.
*/ */

@ -31,7 +31,7 @@ static const char kick_passes_thru[] = "kick passes harmlessly through";
static void static void
kickdmg(struct monst *mon, boolean clumsy) kickdmg(struct monst *mon, boolean clumsy)
{ {
int mdx, mdy; int mdx, mdy;
int dmg = (ACURRSTR + ACURR(A_DEX) + ACURR(A_CON)) / 15; int dmg = (ACURRSTR + ACURR(A_DEX) + ACURR(A_CON)) / 15;
int specialdmg, kick_skill = P_NONE; int specialdmg, kick_skill = P_NONE;
boolean trapkilled = FALSE; boolean trapkilled = FALSE;

@ -30,7 +30,7 @@ static boolean mhurtle_step(genericptr_t, coordxy, coordxy);
&& ((o)->otyp == AKLYS \ && ((o)->otyp == AKLYS \
|| ((o)->oartifact == ART_MJOLLNIR && Role_if(PM_VALKYRIE)))) \ || ((o)->oartifact == ART_MJOLLNIR && Role_if(PM_VALKYRIE)))) \
|| (o)->otyp == BOOMERANG) || (o)->otyp == BOOMERANG)
/* gt.thrownobj (decl.c) tracks an object until it lands */ /* gt.thrownobj (decl.c) tracks an object until it lands */
int int

Loading…
Cancel
Save