Changeset 153
- Timestamp:
- 06/05/07 14:41:58 (1 year ago)
- Files:
-
- trunk/src/cmd0.c (modified) (6 diffs)
- trunk/src/defines.h (modified) (6 diffs)
- trunk/src/dungeon.c (modified) (2 diffs)
- trunk/src/files.c (modified) (3 diffs)
- trunk/src/h-basic.h (modified) (2 diffs)
- trunk/src/load.c (modified) (1 diff)
- trunk/src/main-win.c (modified) (2 diffs)
- trunk/src/tables.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd0.c
r143 r153 200 200 { 201 201 /* Verify first time */ 202 if ( verify_special && !(p_ptr->noscore & 0x0002))202 if (!(p_ptr->noscore & NOSCORE_WIZARD)) 203 203 { 204 204 /* Mention effects */ … … 212 212 213 213 /* Mark savefile */ 214 p_ptr->noscore |= 0x0002;214 p_ptr->noscore |= NOSCORE_WIZARD; 215 215 } 216 216 … … 245 245 { 246 246 /* Ask first time */ 247 if ( verify_special && !(p_ptr->noscore & 0x0008))247 if (!(p_ptr->noscore & NOSCORE_DEBUG)) 248 248 { 249 249 /* Mention effects */ … … 257 257 258 258 /* Mark savefile */ 259 p_ptr->noscore |= 0x0008;259 p_ptr->noscore |= NOSCORE_DEBUG; 260 260 } 261 261 … … 276 276 { 277 277 /* Ask first time */ 278 if ( verify_special && !(p_ptr->noscore & 0x0010))278 if (!(p_ptr->noscore & NOSCORE_BORG)) 279 279 { 280 280 /* Mention effects */ … … 288 288 289 289 /* Mark savefile */ 290 p_ptr->noscore |= 0x0010;290 p_ptr->noscore |= NOSCORE_BORG; 291 291 } 292 292 trunk/src/defines.h
r152 r153 240 240 241 241 /* 242 * Maximum value storable in a "byte" (hard-coded)243 */244 #define MAX_UCHAR 255245 246 /*247 * Maximum value storable in a "s16b" (hard-coded)248 */249 #define MAX_SHORT 32767250 251 252 /*253 242 * Store constants 254 243 * … … 483 472 * Indexes of the various "stats" (hard-coded by savefiles, etc). 484 473 */ 485 #define A_STR 0 486 #define A_INT 1 487 #define A_WIS 2 488 #define A_DEX 3 489 #define A_CON 4 490 #define A_CHR 5 491 492 /* 493 * Total number of stats. 494 */ 495 #define A_MAX 6 474 enum 475 { 476 A_STR = 0, 477 A_INT, 478 A_WIS, 479 A_DEX, 480 A_CON, 481 A_CHR, 482 483 A_MAX 484 }; 496 485 497 486 … … 618 607 619 608 /* 620 * Number of keymap modes 621 */ 622 #define KEYMAP_MODES 2 623 624 /* 625 * Mode for original keyset commands 626 */ 627 #define KEYMAP_MODE_ORIG 0 628 629 /* 630 * Mode for roguelike keyset commands 631 */ 632 #define KEYMAP_MODE_ROGUE 1 609 * Keymap modes. 610 */ 611 enum 612 { 613 KEYMAP_MODE_ORIG = 0, 614 KEYMAP_MODE_ROGUE, 615 616 KEYMAP_MODES /* Total */ 617 }; 618 633 619 634 620 … … 2444 2430 #define OPT_disturb_minor 24 2445 2431 2446 #define OPT_verify_destroy 282447 #define OPT_verify_special 292448 2449 2432 #define OPT_view_perma_grids 38 2450 2433 #define OPT_view_torch_grids 39 … … 2535 2518 #define disturb_state op_ptr->opt[OPT_disturb_state] 2536 2519 #define disturb_minor op_ptr->opt[OPT_disturb_minor] 2537 #define verify_special op_ptr->opt[OPT_verify_special]2538 2520 #define view_perma_grids op_ptr->opt[OPT_view_perma_grids] 2539 2521 #define view_torch_grids op_ptr->opt[OPT_view_torch_grids] … … 3123 3105 3124 3106 #define ACT_MAX 50 3107 3108 3109 3110 /* player_type.noscore flags */ 3111 #define NOSCORE_RESURRECT 0x0001 3112 #define NOSCORE_WIZARD 0x0002 3113 #define NOSCORE_DEBUG 0x0008 3114 #define NOSCORE_BORG 0x0010 trunk/src/dungeon.c
r152 r153 1 2 1 /* File: dungeon.c */ 3 2 … … 2106 2105 2107 2106 /* Mark savefile */ 2108 p_ptr->noscore |= 0x0001;2107 p_ptr->noscore |= NOSCORE_RESSURECT; 2109 2108 2110 2109 /* Message */ trunk/src/files.c
r136 r153 2748 2748 2749 2749 /* Ignore wizards and borgs */ 2750 if (!(p_ptr->noscore & 0x00FF))2750 if (!(p_ptr->noscore & (NOSCORE_WIZARD | NOSCORE_BORG))) 2751 2751 { 2752 2752 /* Ignore people who die in town */ … … 3428 3428 3429 3429 /* Wizard-mode pre-empts scoring */ 3430 if (p_ptr->noscore & 0x000F)3430 if (p_ptr->noscore & NOSCORE_WIZARD) 3431 3431 { 3432 3432 msg_print("Score not registered for wizards."); … … 3441 3441 3442 3442 /* Borg-mode pre-empts scoring */ 3443 if (p_ptr->noscore & 0x00F0)3443 if (p_ptr->noscore & NOSCORE_BORG) 3444 3444 { 3445 3445 msg_print("Score not registered for borgs."); trunk/src/h-basic.h
r128 r153 193 193 typedef int32_t s32b; 194 194 195 #define MAX_UCHAR INT8_MAX 196 #define MAX_SHORT SINT16_MAX 197 195 198 #else /* __STDC__ */ 196 199 … … 199 202 typedef signed short s16b; 200 203 typedef unsigned short u16b; 204 205 #define MAX_UCHAR UCHAR_MAX 206 #define MAX_SHORT 32767 201 207 202 208 /* Detect >32-bit longs */ trunk/src/load.c
r144 r153 2291 2291 2292 2292 /* Mark the savefile */ 2293 p_ptr->noscore |= 0x0002;2293 p_ptr->noscore |= NOSCORE_RESURRECT; 2294 2294 2295 2295 /* Done */ trunk/src/main-win.c
r141 r153 3268 3268 * Make sure the "verify_special" options is off, so that we can 3269 3269 * get into Borg mode without confirmation. 3270 * 3271 * Try just marking the savefile correctly. 3270 3272 */ 3271 3272 screensaver_inkey_hack_buffer[j++] = '='; /* Enter options screen */ 3273 screensaver_inkey_hack_buffer[j++] = '2'; /* Disturbance options */ 3274 3275 /* Cursor down to "verify_special" */ 3276 for (i = 0; i < 10; i++) 3277 screensaver_inkey_hack_buffer[j++] = '2'; 3278 3279 screensaver_inkey_hack_buffer[j++] = 'n'; /* Switch off "verify_special" */ 3280 screensaver_inkey_hack_buffer[j++] = ESCAPE; /* Leave disturbance options */ 3273 p_ptr->noscore |= (NOSCORE_BORG); 3281 3274 3282 3275 /* … … 3284 3277 * automatically restart. 3285 3278 */ 3286 3287 screensaver_inkey_hack_buffer[j++] = '7'; /* Cheat options */ 3279 screensaver_inkey_hack_buffer[j++] = '5'; /* Cheat options */ 3288 3280 3289 3281 /* Cursor down to "cheat live" */ trunk/src/tables.c
r152 r153 1426 1426 NULL, /* xxx alert_failure */ 1427 1427 NULL, /* xxx verify_destroy */ 1428 "verify_special", /* OPT_verify_special */1428 NULL, /* xxx verify_special */ 1429 1429 NULL, /* xxx allow_quantity */ 1430 1430 NULL, /* xxx */ … … 1690 1690 NULL, /* xxx alert_failure */ 1691 1691 NULL, /* xxx verify_destroy */ 1692 "Verify use of special commands", /* OPT_verify_special */1692 NULL, /* xxx verify_special */ 1693 1693 NULL, /* xxx allow_quantity */ 1694 1694 NULL, /* xxx */ … … 1954 1954 FALSE, /* xxx alert_failure */ 1955 1955 FALSE, /* xxx verify_destroy */ 1956 TRUE, /* OPT_verify_special */1956 FALSE, /* xxx verify_special */ 1957 1957 FALSE, /* xxx allow_quantity */ 1958 1958 FALSE, /* xxx */ … … 2198 2198 OPT_easy_alter, 2199 2199 OPT_easy_open, 2200 OPT_ verify_special,2200 OPT_NONE, 2201 2201 OPT_NONE, 2202 2202 OPT_NONE,
