メインリポジトリ
Revision | e6f5f4545f57301b044e131d6faebe30e0541822 (tree) |
---|---|
Time | 2011-11-05 22:01:40 |
Author | unknown <shira@.(no...> |
Commiter | unknown |
no bone
@@ -327,6 +327,7 @@ typedef unsigned char uchar; | ||
327 | 327 | #define TOURIST /* Tourist players with cameras and Hawaiian shirts */ |
328 | 328 | /* difficulty */ |
329 | 329 | /* #define ELBERETH /* Engraving the E-word repels monsters */ |
330 | +#define NO_BONES */ /* Disables loading and saving bones levels*/ | |
330 | 331 | /* I/O */ |
331 | 332 | #define REDO /* support for redoing last command - DGK */ |
332 | 333 | #if !defined(MAC) |
@@ -163,6 +163,9 @@ can_make_bones() | ||
163 | 163 | { |
164 | 164 | register struct trap *ttmp; |
165 | 165 | |
166 | +#ifdef NO_BONES | |
167 | + return FALSE; | |
168 | +#else | |
166 | 169 | if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno()) |
167 | 170 | return FALSE; |
168 | 171 | if (no_bones_level(&u.uz)) |
@@ -186,6 +189,7 @@ can_make_bones() | ||
186 | 189 | * in bones files */ |
187 | 190 | if (discover) return FALSE; |
188 | 191 | return TRUE; |
192 | +#endif | |
189 | 193 | } |
190 | 194 | |
191 | 195 | /* save bones and possessions of a deceased adventurer */ |
@@ -378,6 +382,9 @@ getbones() | ||
378 | 382 | register int ok; |
379 | 383 | char c, *bonesid, oldbonesid[10]; |
380 | 384 | |
385 | +#ifdef NO_BONES | |
386 | + return(0); | |
387 | +#else | |
381 | 388 | if(discover) /* save bones files for real games */ |
382 | 389 | return(0); |
383 | 390 |
@@ -469,6 +476,7 @@ getbones() | ||
469 | 476 | return(0); |
470 | 477 | } |
471 | 478 | return(ok); |
479 | +#endif | |
472 | 480 | } |
473 | 481 | |
474 | 482 | /*bones.c*/ |