some trailing whitespace in src, include
This commit is contained in:
+7
-7
@@ -119,7 +119,7 @@ struct sinfo {
|
|||||||
|
|
||||||
/* NetHack ftypes */
|
/* NetHack ftypes */
|
||||||
#define NHF_LEVELFILE 1
|
#define NHF_LEVELFILE 1
|
||||||
#define NHF_SAVEFILE 2
|
#define NHF_SAVEFILE 2
|
||||||
#define NHF_BONESFILE 3
|
#define NHF_BONESFILE 3
|
||||||
/* modes */
|
/* modes */
|
||||||
#define READING 0x0
|
#define READING 0x0
|
||||||
@@ -137,7 +137,7 @@ struct fieldlevel_content {
|
|||||||
boolean binary; /* binary rather than text */
|
boolean binary; /* binary rather than text */
|
||||||
boolean json; /* JSON */
|
boolean json; /* JSON */
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int fd; /* for traditional structlevel binary writes */
|
int fd; /* for traditional structlevel binary writes */
|
||||||
int mode; /* holds READING, WRITING, or FREEING modes */
|
int mode; /* holds READING, WRITING, or FREEING modes */
|
||||||
@@ -822,7 +822,7 @@ struct instance_globals {
|
|||||||
dlevel_t level; /* level map */
|
dlevel_t level; /* level map */
|
||||||
long moves; /* turn counter */
|
long moves; /* turn counter */
|
||||||
long wailmsg;
|
long wailmsg;
|
||||||
struct obj *migrating_objs; /* objects moving to another dungeon level */
|
struct obj *migrating_objs; /* objects moving to another dungeon level */
|
||||||
struct obj *billobjs; /* objects not yet paid for */
|
struct obj *billobjs; /* objects not yet paid for */
|
||||||
#if defined(MICRO) || defined(WIN32)
|
#if defined(MICRO) || defined(WIN32)
|
||||||
char hackdir[PATHLEN]; /* where rumors, help, record are */
|
char hackdir[PATHLEN]; /* where rumors, help, record are */
|
||||||
@@ -832,7 +832,7 @@ struct instance_globals {
|
|||||||
struct context_info context;
|
struct context_info context;
|
||||||
char *fqn_prefix[PREFIX_COUNT];
|
char *fqn_prefix[PREFIX_COUNT];
|
||||||
/* Windowing stuff that's really tty oriented, but present for all ports */
|
/* Windowing stuff that's really tty oriented, but present for all ports */
|
||||||
struct tc_gbl_data tc_gbl_data; /* AS,AE, LI,CO */
|
struct tc_gbl_data tc_gbl_data; /* AS,AE, LI,CO */
|
||||||
#if defined(UNIX) || defined(VMS)
|
#if defined(UNIX) || defined(VMS)
|
||||||
int locknum; /* max num of simultaneous users */
|
int locknum; /* max num of simultaneous users */
|
||||||
#endif
|
#endif
|
||||||
@@ -883,7 +883,7 @@ struct instance_globals {
|
|||||||
char dogname[PL_PSIZ];
|
char dogname[PL_PSIZ];
|
||||||
char catname[PL_PSIZ];
|
char catname[PL_PSIZ];
|
||||||
char horsename[PL_PSIZ];
|
char horsename[PL_PSIZ];
|
||||||
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
|
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
|
||||||
struct monst *mydogs; /* monsters that went down/up together with @ */
|
struct monst *mydogs; /* monsters that went down/up together with @ */
|
||||||
struct monst *migrating_mons; /* monsters moving to another level */
|
struct monst *migrating_mons; /* monsters moving to another level */
|
||||||
struct autopickup_exception *apelist;
|
struct autopickup_exception *apelist;
|
||||||
@@ -949,7 +949,7 @@ struct instance_globals {
|
|||||||
|
|
||||||
/* invent.c */
|
/* invent.c */
|
||||||
int lastinvnr; /* 0 ... 51 (never saved&restored) */
|
int lastinvnr; /* 0 ... 51 (never saved&restored) */
|
||||||
unsigned sortlootmode; /* set by sortloot() for use by sortloot_cmp();
|
unsigned sortlootmode; /* set by sortloot() for use by sortloot_cmp();
|
||||||
* reset by sortloot when done */
|
* reset by sortloot when done */
|
||||||
char *invbuf;
|
char *invbuf;
|
||||||
unsigned invbufsiz;
|
unsigned invbufsiz;
|
||||||
@@ -990,7 +990,7 @@ struct instance_globals {
|
|||||||
int min_rx; /* rectangle bounds for regions */
|
int min_rx; /* rectangle bounds for regions */
|
||||||
int max_rx;
|
int max_rx;
|
||||||
int min_ry;
|
int min_ry;
|
||||||
int max_ry;
|
int max_ry;
|
||||||
int n_loc_filled;
|
int n_loc_filled;
|
||||||
|
|
||||||
/* mkmaze.c */
|
/* mkmaze.c */
|
||||||
|
|||||||
+1
-1
@@ -158,7 +158,7 @@ typedef struct branch {
|
|||||||
#define MIGR_WITH_HERO 9 /* mon: followers; obj: trap door */
|
#define MIGR_WITH_HERO 9 /* mon: followers; obj: trap door */
|
||||||
#define MIGR_NOBREAK 1024 /* bitmask: don't break on delivery */
|
#define MIGR_NOBREAK 1024 /* bitmask: don't break on delivery */
|
||||||
#define MIGR_NOSCATTER 2048 /* don't scatter on delivery */
|
#define MIGR_NOSCATTER 2048 /* don't scatter on delivery */
|
||||||
#define MIGR_TO_SPECIES 4096 /* migrating to species as they are made */
|
#define MIGR_TO_SPECIES 4096 /* migrating to species as they are made */
|
||||||
#define MIGR_LEFTOVERS 8192 /* grab remaining MIGR_TO_SPECIES objects */
|
#define MIGR_LEFTOVERS 8192 /* grab remaining MIGR_TO_SPECIES objects */
|
||||||
/* level information (saved via ledger number) */
|
/* level information (saved via ledger number) */
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
/*-Copyright (c) Michael Allison, 2020. */
|
/*-Copyright (c) Michael Allison, 2020. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef FNAMESIZ_H
|
#ifndef FNAMESIZ_H
|
||||||
#define FNAMESIZ_H
|
#define FNAMESIZ_H
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
+3
-3
@@ -418,10 +418,10 @@ opt_##a,
|
|||||||
&flags.showrace)
|
&flags.showrace)
|
||||||
#ifdef SCORE_ON_BOTL
|
#ifdef SCORE_ON_BOTL
|
||||||
NHOPTB(showscore, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
|
NHOPTB(showscore, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
|
||||||
&flags.showscore)
|
&flags.showscore)
|
||||||
#else
|
#else
|
||||||
NHOPTB(showscore, 0, opt_in, set_in_config, Off, Yes, No, No, NoAlias,
|
NHOPTB(showscore, 0, opt_in, set_in_config, Off, Yes, No, No, NoAlias,
|
||||||
(boolean *) 0)
|
(boolean *) 0)
|
||||||
#endif
|
#endif
|
||||||
NHOPTB(silent, 0, opt_out, set_in_game, On, Yes, No, No, NoAlias,
|
NHOPTB(silent, 0, opt_out, set_in_game, On, Yes, No, No, NoAlias,
|
||||||
&flags.silent)
|
&flags.silent)
|
||||||
@@ -443,7 +443,7 @@ opt_##a,
|
|||||||
&iflags.status_updates)
|
&iflags.status_updates)
|
||||||
NHOPTO("status condition fields", o_status_cond, BUFSZ, opt_in,
|
NHOPTO("status condition fields", o_status_cond, BUFSZ, opt_in,
|
||||||
set_in_game, No, Yes, No, NoAlias, "edit status condition fields")
|
set_in_game, No, Yes, No, NoAlias, "edit status condition fields")
|
||||||
#ifdef STATUS_HILITES
|
#ifdef STATUS_HILITES
|
||||||
NHOPTC(statushilites, 20, opt_in, set_in_game, Yes, Yes, Yes, No, NoAlias,
|
NHOPTC(statushilites, 20, opt_in, set_in_game, Yes, Yes, Yes, No, NoAlias,
|
||||||
"0=no status highlighting, N=show highlights for N turns")
|
"0=no status highlighting, N=show highlights for N turns")
|
||||||
NHOPTO("status hilite rules", o_status_hilites, BUFSZ, opt_in, set_in_game,
|
NHOPTO("status hilite rules", o_status_hilites, BUFSZ, opt_in, set_in_game,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
* fix potential buffer overflow in pline(), raw_printf(), and config_error_add()
|
* fix potential buffer overflow in pline(), raw_printf(), and config_error_add()
|
||||||
* fix potential buffer overflow in choose_windows()
|
* fix potential buffer overflow in choose_windows()
|
||||||
* use vsnprintf instead of vsprintf in pline.c where possible
|
* use vsnprintf instead of vsprintf in pline.c where possible
|
||||||
* Windows: incldues a fix from a 3.6.4 post-release update where
|
* Windows: incldues a fix from a 3.6.4 post-release update where
|
||||||
* OPTIONS=map_mode:fit_to_screen could cause a game start failure
|
* OPTIONS=map_mode:fit_to_screen could cause a game start failure
|
||||||
* Windows: users with C-locale unmappable names could get game start failure
|
* Windows: users with C-locale unmappable names could get game start failure
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#define CONFIG_FILE "defaults.nh"
|
#define CONFIG_FILE "defaults.nh"
|
||||||
#define GUIDEBOOK_FILE "Guidebook.txt"
|
#define GUIDEBOOK_FILE "Guidebook.txt"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following options are somewhat configurable depending on
|
* The following options are somewhat configurable depending on
|
||||||
* your compiler.
|
* your compiler.
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ struct TileSetImage {
|
|||||||
struct Pixel *pixels; /* for direct color */
|
struct Pixel *pixels; /* for direct color */
|
||||||
unsigned char *indexes; /* for paletted images */
|
unsigned char *indexes; /* for paletted images */
|
||||||
struct Pixel palette[256];
|
struct Pixel palette[256];
|
||||||
|
|
||||||
/* Image description from the file */
|
/* Image description from the file */
|
||||||
char *image_desc;
|
char *image_desc;
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -169,7 +169,7 @@ PANICTRACE_GDB=2 #at conclusion of panic, show a call traceback and then
|
|||||||
#define FCMASK 0660 /* file creation mask */
|
#define FCMASK 0660 /* file creation mask */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define NO_VSNPRINTF /* Avoid vsnprintf, use less-safe vsprintf instead. */
|
#define NO_VSNPRINTF /* Avoid vsnprintf, use less-safe vsprintf instead. */
|
||||||
|
|
||||||
@@ -178,12 +178,12 @@ PANICTRACE_GDB=2 #at conclusion of panic, show a call traceback and then
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* This used to be force-defined for VMS in topten.c, but with
|
/* This used to be force-defined for VMS in topten.c, but with
|
||||||
* the global variable consolidation into g in 3.7, it has to be
|
* the global variable consolidation into g in 3.7, it has to be
|
||||||
* defined here so that decl.h includes the field in g.
|
* defined here so that decl.h includes the field in g.
|
||||||
*/
|
*/
|
||||||
#define UPDATE_RECORD_IN_PLACE
|
#define UPDATE_RECORD_IN_PLACE
|
||||||
|
|
||||||
/* data librarian defs */
|
/* data librarian defs */
|
||||||
#ifdef DLB
|
#ifdef DLB
|
||||||
#define DLBFILE "nh-data.dlb"
|
#define DLBFILE "nh-data.dlb"
|
||||||
/*
|
/*
|
||||||
|
|||||||
+1
-1
@@ -111,7 +111,7 @@ extern void interject(int);
|
|||||||
#endif
|
#endif
|
||||||
/* extern int getlock(void); */
|
/* extern int getlock(void); */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define HAS_STDINT
|
#define HAS_STDINT
|
||||||
#if (_MSC_VER > 1000)
|
#if (_MSC_VER > 1000)
|
||||||
|
|||||||
+2
-2
@@ -153,7 +153,7 @@ save_dungeon(NHFILE *nhfp, boolean perform_write, boolean free_data)
|
|||||||
bwrite(nhfp->fd, (genericptr_t) curr, sizeof *curr);
|
bwrite(nhfp->fd, (genericptr_t) curr, sizeof *curr);
|
||||||
}
|
}
|
||||||
count = maxledgerno();
|
count = maxledgerno();
|
||||||
if (nhfp->structlevel) {
|
if (nhfp->structlevel) {
|
||||||
bwrite(nhfp->fd, (genericptr_t) &count, sizeof count);
|
bwrite(nhfp->fd, (genericptr_t) &count, sizeof count);
|
||||||
bwrite(nhfp->fd, (genericptr_t) g.level_info,
|
bwrite(nhfp->fd, (genericptr_t) g.level_info,
|
||||||
(unsigned) count * sizeof (struct linfo));
|
(unsigned) count * sizeof (struct linfo));
|
||||||
@@ -168,7 +168,7 @@ save_dungeon(NHFILE *nhfp, boolean perform_write, boolean free_data)
|
|||||||
|
|
||||||
for (curr_ms = g.mapseenchn; curr_ms; curr_ms = curr_ms->next) {
|
for (curr_ms = g.mapseenchn; curr_ms; curr_ms = curr_ms->next) {
|
||||||
save_mapseen(nhfp, curr_ms);
|
save_mapseen(nhfp, curr_ms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (free_data) {
|
if (free_data) {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ panictrace_handler(int sig_unused UNUSED)
|
|||||||
curses_uncurse_terminal();
|
curses_uncurse_terminal();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
f2 = (int) write(2, SIG_MSG, sizeof SIG_MSG - 1);
|
f2 = (int) write(2, SIG_MSG, sizeof SIG_MSG - 1);
|
||||||
nhUse(f2); /* what could we do if write to fd#2 (stderr) fails */
|
nhUse(f2); /* what could we do if write to fd#2 (stderr) fails */
|
||||||
NH_abort(); /* ... and we're already in the process of quitting? */
|
NH_abort(); /* ... and we're already in the process of quitting? */
|
||||||
|
|||||||
+1
-1
@@ -382,7 +382,7 @@ save_light_sources(NHFILE *nhfp, int range)
|
|||||||
panic("counted %d light sources, wrote %d! [range=%d]", count,
|
panic("counted %d light sources, wrote %d! [range=%d]", count,
|
||||||
actual, range);
|
actual, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (release_data(nhfp)) {
|
if (release_data(nhfp)) {
|
||||||
for (prev = &g.light_base; (curr = *prev) != 0; ) {
|
for (prev = &g.light_base; (curr = *prev) != 0; ) {
|
||||||
if (!curr->id.a_monst) {
|
if (!curr->id.a_monst) {
|
||||||
|
|||||||
+1
-1
@@ -519,7 +519,7 @@ static const char *build_opts[] = {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
"strong PRNG seed from CNG BCryptGenRandom()",
|
"strong PRNG seed from CNG BCryptGenRandom()",
|
||||||
#endif
|
#endif
|
||||||
#endif /* DEV_RANDOM */
|
#endif /* DEV_RANDOM */
|
||||||
#else /* ISAAC64 */
|
#else /* ISAAC64 */
|
||||||
#ifdef RANDOM
|
#ifdef RANDOM
|
||||||
"pseudo random numbers generated by random()",
|
"pseudo random numbers generated by random()",
|
||||||
|
|||||||
+4
-4
@@ -312,10 +312,10 @@ joinm:
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
finish_map(
|
finish_map(
|
||||||
schar fg_typ,
|
schar fg_typ,
|
||||||
schar bg_typ,
|
schar bg_typ,
|
||||||
boolean lit,
|
boolean lit,
|
||||||
boolean walled,
|
boolean walled,
|
||||||
boolean icedpools)
|
boolean icedpools)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|||||||
+1
-1
@@ -1887,7 +1887,7 @@ peek_at_iced_corpse_age(struct obj *otmp)
|
|||||||
static void
|
static void
|
||||||
obj_timer_checks(
|
obj_timer_checks(
|
||||||
struct obj *otmp,
|
struct obj *otmp,
|
||||||
xchar x, xchar y,
|
xchar x, xchar y,
|
||||||
int force) /* 0 = no force so do checks, <0 = force off, >0 force on */
|
int force) /* 0 = no force so do checks, <0 = force off, >0 force on */
|
||||||
{
|
{
|
||||||
long tleft = 0L;
|
long tleft = 0L;
|
||||||
|
|||||||
@@ -3314,7 +3314,7 @@ maybe_mnexto(struct monst* mtmp)
|
|||||||
int
|
int
|
||||||
mnearto(
|
mnearto(
|
||||||
register struct monst *mtmp,
|
register struct monst *mtmp,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y,
|
xchar y,
|
||||||
boolean move_other) /* make sure mtmp gets to x, y! so move m_at(x, y) */
|
boolean move_other) /* make sure mtmp gets to x, y! so move m_at(x, y) */
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -788,7 +788,7 @@ should_displace(
|
|||||||
coord *poss, /* coord poss[9] */
|
coord *poss, /* coord poss[9] */
|
||||||
long *info, /* long info[9] */
|
long *info, /* long info[9] */
|
||||||
int cnt,
|
int cnt,
|
||||||
xchar gx,
|
xchar gx,
|
||||||
xchar gy)
|
xchar gy)
|
||||||
{
|
{
|
||||||
int shortest_with_displacing = -1;
|
int shortest_with_displacing = -1;
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ m_has_launcher_and_ammo(struct monst* mtmp)
|
|||||||
/* hero is hit by something other than a monster */
|
/* hero is hit by something other than a monster */
|
||||||
int
|
int
|
||||||
thitu(
|
thitu(
|
||||||
int tlev,
|
int tlev,
|
||||||
int dam,
|
int dam,
|
||||||
struct obj **objp,
|
struct obj **objp,
|
||||||
const char *name) /* if null, then format `*objp' */
|
const char *name) /* if null, then format `*objp' */
|
||||||
|
|||||||
+1
-1
@@ -677,7 +677,7 @@ save_regions(NHFILE* nhfp)
|
|||||||
bwrite(nhfp->fd, (genericptr_t) &g.regions[i]->arg, sizeof (anything));
|
bwrite(nhfp->fd, (genericptr_t) &g.regions[i]->arg, sizeof (anything));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
skip_lots:
|
skip_lots:
|
||||||
if (release_data(nhfp))
|
if (release_data(nhfp))
|
||||||
clear_regions();
|
clear_regions();
|
||||||
|
|||||||
+1
-1
@@ -1531,7 +1531,7 @@ root_plselection_prompt(
|
|||||||
|
|
||||||
char *
|
char *
|
||||||
build_plselection_prompt(
|
build_plselection_prompt(
|
||||||
char *buf, int buflen,
|
char *buf, int buflen,
|
||||||
int rolenum, int racenum, int gendnum, int alignnum)
|
int rolenum, int racenum, int gendnum, int alignnum)
|
||||||
{
|
{
|
||||||
const char *defprompt = "Shall I pick a character for you? [ynaq] ";
|
const char *defprompt = "Shall I pick a character for you? [ynaq] ";
|
||||||
|
|||||||
+1
-1
@@ -874,7 +874,7 @@ savetrapchn(NHFILE* nhfp, register struct trap* trap)
|
|||||||
while (trap) {
|
while (trap) {
|
||||||
trap2 = trap->ntrap;
|
trap2 = trap->ntrap;
|
||||||
if (perform_bwrite(nhfp)) {
|
if (perform_bwrite(nhfp)) {
|
||||||
if (nhfp->structlevel)
|
if (nhfp->structlevel)
|
||||||
bwrite(nhfp->fd, (genericptr_t) trap, sizeof *trap);
|
bwrite(nhfp->fd, (genericptr_t) trap, sizeof *trap);
|
||||||
}
|
}
|
||||||
if (release_data(nhfp))
|
if (release_data(nhfp))
|
||||||
|
|||||||
@@ -1570,10 +1570,10 @@ dopay(void)
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
dopayobj(
|
dopayobj(
|
||||||
register struct monst* shkp,
|
register struct monst* shkp,
|
||||||
register struct bill_x* bp,
|
register struct bill_x* bp,
|
||||||
struct obj** obj_p,
|
struct obj** obj_p,
|
||||||
int which /* 0 => used-up item, 1 => other (unpaid or lost) */,
|
int which /* 0 => used-up item, 1 => other (unpaid or lost) */,
|
||||||
boolean itemize)
|
boolean itemize)
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -2044,7 +2044,7 @@ oid_price_adjustment(struct obj* obj, unsigned int oid)
|
|||||||
/* calculate the value that the shk will charge for [one of] an object */
|
/* calculate the value that the shk will charge for [one of] an object */
|
||||||
static long
|
static long
|
||||||
get_cost(
|
get_cost(
|
||||||
register struct obj* obj,
|
register struct obj* obj,
|
||||||
register struct monst* shkp) /* if angry, impose a surcharge */
|
register struct monst* shkp) /* if angry, impose a surcharge */
|
||||||
{
|
{
|
||||||
long tmp = getprice(obj, FALSE),
|
long tmp = getprice(obj, FALSE),
|
||||||
@@ -2514,7 +2514,7 @@ add_to_billobjs(struct obj* obj)
|
|||||||
static void
|
static void
|
||||||
bill_box_content(
|
bill_box_content(
|
||||||
register struct obj *obj,
|
register struct obj *obj,
|
||||||
register boolean ininv,
|
register boolean ininv,
|
||||||
register boolean dummy,
|
register boolean dummy,
|
||||||
register struct monst *shkp)
|
register struct monst *shkp)
|
||||||
{
|
{
|
||||||
@@ -2613,7 +2613,7 @@ billable(
|
|||||||
void
|
void
|
||||||
addtobill(
|
addtobill(
|
||||||
struct obj *obj,
|
struct obj *obj,
|
||||||
boolean ininv,
|
boolean ininv,
|
||||||
boolean dummy,
|
boolean dummy,
|
||||||
boolean silent)
|
boolean silent)
|
||||||
{
|
{
|
||||||
@@ -2876,9 +2876,9 @@ stolen_container(
|
|||||||
long
|
long
|
||||||
stolen_value(
|
stolen_value(
|
||||||
struct obj *obj,
|
struct obj *obj,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y,
|
xchar y,
|
||||||
boolean peaceful,
|
boolean peaceful,
|
||||||
boolean silent)
|
boolean silent)
|
||||||
{
|
{
|
||||||
long value = 0L, gvalue = 0L, billamt = 0L;
|
long value = 0L, gvalue = 0L, billamt = 0L;
|
||||||
|
|||||||
+2
-2
@@ -142,7 +142,7 @@ enexto(
|
|||||||
boolean
|
boolean
|
||||||
enexto_core(
|
enexto_core(
|
||||||
coord *cc,
|
coord *cc,
|
||||||
xchar xx,
|
xchar xx,
|
||||||
xchar yy,
|
xchar yy,
|
||||||
struct permonst *mdat,
|
struct permonst *mdat,
|
||||||
long entflags)
|
long entflags)
|
||||||
@@ -1135,7 +1135,7 @@ level_tele_trap(struct trap* trap, unsigned int trflags)
|
|||||||
/* check whether monster can arrive at location <x,y> via Tport (or fall) */
|
/* check whether monster can arrive at location <x,y> via Tport (or fall) */
|
||||||
static boolean
|
static boolean
|
||||||
rloc_pos_ok(
|
rloc_pos_ok(
|
||||||
register int x,
|
register int x,
|
||||||
register int y, /* x,y - coordinates of candidate location */
|
register int y, /* x,y - coordinates of candidate location */
|
||||||
struct monst *mtmp)
|
struct monst *mtmp)
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-4
@@ -596,7 +596,7 @@ fall_through(
|
|||||||
struct monst *
|
struct monst *
|
||||||
animate_statue(
|
animate_statue(
|
||||||
struct obj *statue,
|
struct obj *statue,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y,
|
xchar y,
|
||||||
int cause,
|
int cause,
|
||||||
int *fail_reason)
|
int *fail_reason)
|
||||||
@@ -776,7 +776,7 @@ animate_statue(
|
|||||||
struct monst *
|
struct monst *
|
||||||
activate_statue_trap(
|
activate_statue_trap(
|
||||||
struct trap *trap,
|
struct trap *trap,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y,
|
xchar y,
|
||||||
boolean shatter)
|
boolean shatter)
|
||||||
{
|
{
|
||||||
@@ -2950,7 +2950,7 @@ feeltrap(struct trap* trap)
|
|||||||
static int
|
static int
|
||||||
mkroll_launch(
|
mkroll_launch(
|
||||||
struct trap *ttmp,
|
struct trap *ttmp,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y,
|
xchar y,
|
||||||
short otyp,
|
short otyp,
|
||||||
long ocount)
|
long ocount)
|
||||||
@@ -3796,7 +3796,7 @@ fire_damage(
|
|||||||
int
|
int
|
||||||
fire_damage_chain(
|
fire_damage_chain(
|
||||||
struct obj *chain,
|
struct obj *chain,
|
||||||
boolean force,
|
boolean force,
|
||||||
boolean here,
|
boolean here,
|
||||||
xchar x,
|
xchar x,
|
||||||
xchar y)
|
xchar y)
|
||||||
|
|||||||
+2
-2
@@ -39,7 +39,7 @@ getversionstring(char *buf)
|
|||||||
#if defined(RUNTIME_PORT_ID)
|
#if defined(RUNTIME_PORT_ID)
|
||||||
tmp = get_port_id(tmpbuf);
|
tmp = get_port_id(tmpbuf);
|
||||||
if (tmp)
|
if (tmp)
|
||||||
Snprintf(eos(buf), (sizeof buf - strlen(buf)) - 1,
|
Snprintf(eos(buf), (sizeof buf - strlen(buf)) - 1,
|
||||||
"%s%s", c++ ? "," : "", tmp);
|
"%s%s", c++ ? "," : "", tmp);
|
||||||
#endif
|
#endif
|
||||||
if (nomakedefs.git_sha)
|
if (nomakedefs.git_sha)
|
||||||
@@ -223,7 +223,7 @@ early_version_info(boolean pastebuf)
|
|||||||
raw_printf("%s", buf);
|
raw_printf("%s", buf);
|
||||||
|
|
||||||
if (pastebuf) {
|
if (pastebuf) {
|
||||||
#if defined(RUNTIME_PASTEBUF_SUPPORT) && !defined(LIBNH)
|
#if defined(RUNTIME_PASTEBUF_SUPPORT) && !defined(LIBNH)
|
||||||
/*
|
/*
|
||||||
* Call a platform/port-specific routine to insert the
|
* Call a platform/port-specific routine to insert the
|
||||||
* version information into a paste buffer. Useful for
|
* version information into a paste buffer. Useful for
|
||||||
|
|||||||
Reference in New Issue
Block a user