OSDN Git Service
(root)
/
nethackexpress
/
trunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1cb0983
)
no bone
master
author
unknown
<shira@.(none)>
Sat, 5 Nov 2011 13:01:40 +0000
(22:01 +0900)
committer
unknown
<shira@.(none)>
Sat, 5 Nov 2011 13:01:40 +0000
(22:01 +0900)
include/config.h
patch
|
blob
|
history
src/bones.c
patch
|
blob
|
history
diff --git
a/include/config.h
b/include/config.h
index
ec33b95
..
4ba4792
100644
(file)
--- a/
include/config.h
+++ b/
include/config.h
@@
-327,6
+327,7
@@
typedef unsigned char uchar;
#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
/* difficulty */
/* #define ELBERETH /* Engraving the E-word repels monsters */
#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
/* difficulty */
/* #define ELBERETH /* Engraving the E-word repels monsters */
+#define NO_BONES */ /* Disables loading and saving bones levels*/
/* I/O */
#define REDO /* support for redoing last command - DGK */
#if !defined(MAC)
/* I/O */
#define REDO /* support for redoing last command - DGK */
#if !defined(MAC)
diff --git
a/src/bones.c
b/src/bones.c
index
585200a
..
e0a922f
100644
(file)
--- a/
src/bones.c
+++ b/
src/bones.c
@@
-163,6
+163,9
@@
can_make_bones()
{
register struct trap *ttmp;
{
register struct trap *ttmp;
+#ifdef NO_BONES
+ return FALSE;
+#else
if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno())
return FALSE;
if (no_bones_level(&u.uz))
if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno())
return FALSE;
if (no_bones_level(&u.uz))
@@
-186,6
+189,7
@@
can_make_bones()
* in bones files */
if (discover) return FALSE;
return TRUE;
* in bones files */
if (discover) return FALSE;
return TRUE;
+#endif
}
/* save bones and possessions of a deceased adventurer */
}
/* save bones and possessions of a deceased adventurer */
@@
-378,6
+382,9
@@
getbones()
register int ok;
char c, *bonesid, oldbonesid[10];
register int ok;
char c, *bonesid, oldbonesid[10];
+#ifdef NO_BONES
+ return(0);
+#else
if(discover) /* save bones files for real games */
return(0);
if(discover) /* save bones files for real games */
return(0);
@@
-469,6
+476,7
@@
getbones()
return(0);
}
return(ok);
return(0);
}
return(ok);
+#endif
}
/*bones.c*/
}
/*bones.c*/