• R/O
  • HTTP
  • SSH
  • HTTPS

trunk: Commit

メインリポジトリ


Commit MetaInfo

Revisione6f5f4545f57301b044e131d6faebe30e0541822 (tree)
Zeit2011-11-05 22:01:40
Autorunknown <shira@.(no...>
Commiterunknown

Log Message

no bone

Ändern Zusammenfassung

Diff

--- a/include/config.h
+++ b/include/config.h
@@ -327,6 +327,7 @@ typedef unsigned char uchar;
327327 #define TOURIST /* Tourist players with cameras and Hawaiian shirts */
328328 /* difficulty */
329329 /* #define ELBERETH /* Engraving the E-word repels monsters */
330+#define NO_BONES */ /* Disables loading and saving bones levels*/
330331 /* I/O */
331332 #define REDO /* support for redoing last command - DGK */
332333 #if !defined(MAC)
--- a/src/bones.c
+++ b/src/bones.c
@@ -163,6 +163,9 @@ can_make_bones()
163163 {
164164 register struct trap *ttmp;
165165
166+#ifdef NO_BONES
167+ return FALSE;
168+#else
166169 if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno())
167170 return FALSE;
168171 if (no_bones_level(&u.uz))
@@ -186,6 +189,7 @@ can_make_bones()
186189 * in bones files */
187190 if (discover) return FALSE;
188191 return TRUE;
192+#endif
189193 }
190194
191195 /* save bones and possessions of a deceased adventurer */
@@ -378,6 +382,9 @@ getbones()
378382 register int ok;
379383 char c, *bonesid, oldbonesid[10];
380384
385+#ifdef NO_BONES
386+ return(0);
387+#else
381388 if(discover) /* save bones files for real games */
382389 return(0);
383390
@@ -469,6 +476,7 @@ getbones()
469476 return(0);
470477 }
471478 return(ok);
479+#endif
472480 }
473481
474482 /*bones.c*/
Show on old repository browser