Changeset 522
- Timestamp:
- 08/13/07 09:49:19 (1 year ago)
- Files:
-
- trunk/src/Makefile.src (modified) (2 diffs)
- trunk/src/Makefile.std (modified) (1 diff)
- trunk/src/attack.c (modified) (4 diffs)
- trunk/src/cave.c (modified) (9 diffs)
- trunk/src/cmd1.c (modified) (1 diff)
- trunk/src/cmd3.c (modified) (7 diffs)
- trunk/src/cmd4.c (modified) (7 diffs)
- trunk/src/cmd5.c (modified) (5 diffs)
- trunk/src/cmd6.c (modified) (1 diff)
- trunk/src/defines.h (modified) (2 diffs)
- trunk/src/dungeon.c (modified) (18 diffs)
- trunk/src/effects.c (modified) (2 diffs)
- trunk/src/externs.h (modified) (2 diffs)
- trunk/src/init2.c (modified) (1 diff)
- trunk/src/load.c (modified) (1 diff)
- trunk/src/loadsave.c (modified) (2 diffs)
- trunk/src/melee1.c (modified) (3 diffs)
- trunk/src/melee2.c (modified) (1 diff)
- trunk/src/monster2.c (modified) (6 diffs)
- trunk/src/object1.c (modified) (3 diffs)
- trunk/src/object2.c (modified) (9 diffs)
- trunk/src/spells1.c (modified) (9 diffs)
- trunk/src/spells2.c (modified) (14 diffs)
- trunk/src/store.c (modified) (2 diffs)
- trunk/src/types.h (modified) (1 diff)
- trunk/src/ui-event.c (added)
- trunk/src/ui-event.h (added)
- trunk/src/util.c (modified) (2 diffs)
- trunk/src/wizard2.c (modified) (4 diffs)
- trunk/src/xtra1.c (modified) (14 diffs)
- trunk/src/xtra2.c (modified) (8 diffs)
- trunk/src/xtra3.c (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Makefile.src
r510 r522 60 60 trap.o \ 61 61 ui.o \ 62 ui-event.o \ 62 63 util.o \ 63 64 variable.o \ … … 66 67 x-spell.o \ 67 68 xtra1.o \ 68 xtra2.o 69 xtra2.o \ 70 xtra3.o trunk/src/Makefile.std
r469 r522 41 41 42 42 # Support SDL frontend 43 #SYS_sdl = -DUSE_SDL $(shell sdl-config --cflags) $(shell sdl-config --libs) -lSDL_ttf -lSDL_image43 SYS_sdl = -DUSE_SDL $(shell sdl-config --cflags) $(shell sdl-config --libs) -lSDL_ttf -lSDL_image 44 44 45 45 trunk/src/attack.c
r433 r522 746 746 747 747 Term_fresh(); 748 if (p_ptr-> window) window_stuff();748 if (p_ptr->redraw) redraw_stuff(); 749 749 750 750 Term_xtra(TERM_XTRA_DELAY, msec); … … 752 752 753 753 Term_fresh(); 754 if (p_ptr-> window) window_stuff();754 if (p_ptr->redraw) redraw_stuff(); 755 755 } 756 756 … … 1037 1037 1038 1038 Term_fresh(); 1039 if (p_ptr-> window) window_stuff();1039 if (p_ptr->redraw) redraw_stuff(); 1040 1040 1041 1041 Term_xtra(TERM_XTRA_DELAY, msec); … … 1043 1043 1044 1044 Term_fresh(); 1045 if (p_ptr-> window) window_stuff();1045 if (p_ptr->redraw) redraw_stuff(); 1046 1046 } 1047 1047 trunk/src/cave.c
r521 r522 1111 1111 1112 1112 /* Redraw map */ 1113 p_ptr-> window |= (PW_MAP);1113 p_ptr->redraw |= (PR_MAP); 1114 1114 } 1115 1115 } … … 1297 1297 1298 1298 /* Redraw map */ 1299 p_ptr-> window |= (PW_MAP);1299 p_ptr->redraw |= (PR_MAP); 1300 1300 } 1301 1301 } … … 1424 1424 1425 1425 /* Redraw map */ 1426 p_ptr-> window |= (PW_MAP);1426 p_ptr->redraw |= (PR_MAP); 1427 1427 } 1428 1428 } … … 3314 3314 /* Redraw map */ 3315 3315 p_ptr->redraw |= (PR_MAP); 3316 3317 /* Window stuff */3318 p_ptr->window |= (PW_OVERHEAD | PW_MAP);3319 3316 } 3320 3317 … … 3396 3393 p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW | PU_MONSTERS); 3397 3394 3398 /* Redraw map */ 3399 p_ptr->redraw |= (PR_MAP); 3400 3401 /* Window stuff */ 3402 p_ptr->window |= (PW_OVERHEAD | PW_MONLIST | PW_MAP); 3395 /* Redraw map, monster list */ 3396 p_ptr->redraw |= (PR_MAP | PR_MONLIST); 3403 3397 } 3404 3398 … … 3441 3435 p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW | PU_MONSTERS); 3442 3436 3443 /* Redraw map */ 3444 p_ptr->redraw |= (PR_MAP); 3445 3446 /* Window stuff */ 3447 p_ptr->window |= (PW_OVERHEAD | PW_MONLIST | PW_MAP); 3437 /* Redraw map, monster list */ 3438 p_ptr->redraw |= (PR_MAP | PR_MONLIST); 3448 3439 } 3449 3440 … … 3533 3524 p_ptr->update |= (PU_FORGET_VIEW | PU_UPDATE_VIEW | PU_MONSTERS); 3534 3525 3535 /* Redraw map */ 3536 p_ptr->redraw |= (PR_MAP); 3537 3538 /* Window stuff */ 3539 p_ptr->window |= (PW_OVERHEAD | PW_MONLIST | PW_MAP); 3526 /* Redraw map, monster list */ 3527 p_ptr->redraw |= (PR_MAP | PR_MONLIST); 3540 3528 } 3541 3529 … … 3951 3939 3952 3940 /* Window stuff */ 3953 p_ptr-> window |= (PW_MONSTER);3941 p_ptr->redraw |= (PR_MONSTER); 3954 3942 } 3955 3943 … … 3965 3953 3966 3954 /* Window stuff */ 3967 p_ptr-> window |= (PW_OBJECT);3955 p_ptr->redraw |= (PR_OBJECT); 3968 3956 } 3969 3957 trunk/src/cmd1.c
r509 r522 228 228 /* Redraw gold */ 229 229 p_ptr->redraw |= (PR_GOLD); 230 231 /* Window stuff */232 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);233 230 } 234 231 trunk/src/cmd3.c
r454 r522 301 301 /* Recalculate bonuses, torch, mana */ 302 302 p_ptr->update |= (PU_BONUS | PU_TORCH | PU_MANA); 303 304 /* Window stuff */ 305 p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER_0 | PW_PLAYER_1); 306 307 p_ptr->redraw |= (PR_EQUIPPY); 303 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 308 304 } 309 305 … … 511 507 p_ptr->notice |= (PN_COMBINE); 512 508 513 /* Window stuff */ 514 p_ptr->window |= (PW_INVEN | PW_EQUIP); 515 516 p_ptr->redraw |= (PR_EQUIPPY); 509 /* Redraw stuff */ 510 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 517 511 518 512 /* Done */ … … 649 643 p_ptr->notice |= (PN_COMBINE | PN_SQUELCH); 650 644 651 /* Window stuff */652 p_ptr-> window |= (PW_INVEN | PW_EQUIP);645 /* Redraw stuff */ 646 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 653 647 } 654 648 … … 713 707 p_ptr->notice |= (PN_COMBINE | PN_SQUELCH); 714 708 715 /* Window stuff */716 p_ptr-> window |= (PW_INVEN | PW_EQUIP);709 /* Redraw stuff */ 710 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 717 711 } 718 712 } … … 842 836 p_ptr->notice |= (PN_COMBINE | PN_REORDER); 843 837 844 /* Window stuff */845 p_ptr-> window |= (PW_INVEN);838 /* Redraw stuff */ 839 p_ptr->redraw |= (PR_INVEN); 846 840 } 847 841 … … 869 863 p_ptr->update |= (PU_TORCH); 870 864 871 /* Window stuff */872 p_ptr-> window |= (PW_EQUIP);865 /* Redraw stuff */ 866 p_ptr->redraw |= (PR_EQUIP); 873 867 } 874 868 … … 976 970 p_ptr->update |= (PU_TORCH); 977 971 978 /* Window stuff */979 p_ptr-> window |= (PW_EQUIP);972 /* Redraw stuff */ 973 p_ptr->redraw |= (PR_EQUIP); 980 974 } 981 975 trunk/src/cmd4.c
r479 r522 1720 1720 /* Notice stuff (later) */ 1721 1721 p_ptr->notice |= (PN_AUTOINSCRIBE); 1722 p_ptr-> window |= (PW_INVEN | PW_EQUIP);1722 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 1723 1723 } 1724 1724 … … 1892 1892 1893 1893 /* Redraw everything */ 1894 p_ptr->redraw |= (PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY); 1895 1896 /* Window stuff */ 1897 p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER_0 | PW_PLAYER_1 | 1898 PW_MESSAGE | PW_OVERHEAD | PW_MONSTER | PW_OBJECT | 1899 PW_MAP | PW_MONLIST); 1894 p_ptr->redraw |= (PR_BASIC | PR_EXTRA | PR_MAP | PR_INVEN | PR_EQUIP | 1895 PR_MESSAGE | PR_MONSTER | PR_OBJECT | 1896 PR_MONLIST); 1900 1897 1901 1898 /* Clear screen */ … … 2382 2379 event_type ke; 2383 2380 2384 u32b old_flag[ANGBAND_TERM_MAX];2385 2386 2387 /* Memorize old flags */2381 u32b new_flags[ANGBAND_TERM_MAX]; 2382 2383 2384 /* Set new flags to the old values */ 2388 2385 for (j = 0; j < ANGBAND_TERM_MAX; j++) 2389 2386 { 2390 old_flag[j] = op_ptr->window_flag[j];2387 new_flags[j] = op_ptr->window_flag[j]; 2391 2388 } 2392 2389 … … 2442 2439 2443 2440 /* Active flag */ 2444 if ( op_ptr->window_flag[j] & (1L << i)) c = 'X';2441 if (new_flags[j] & (1L << i)) c = 'X'; 2445 2442 2446 2443 /* Flag value */ … … 2486 2483 2487 2484 /* Toggle flag (off) */ 2488 else if ( op_ptr->window_flag[x] & (1L << y))2485 else if (new_flags[x] & (1L << y)) 2489 2486 { 2490 op_ptr->window_flag[x] &= ~(1L << y);2487 new_flags[x] &= ~(1L << y); 2491 2488 } 2492 2489 … … 2494 2491 else 2495 2492 { 2496 op_ptr->window_flag[x] |= (1L << y);2493 new_flags[x] |= (1L << y); 2497 2494 } 2498 2495 … … 2519 2516 2520 2517 /* Notice changes */ 2521 for (j = 0; j < ANGBAND_TERM_MAX; j++) 2522 { 2523 term *old = Term; 2524 2525 /* Dead window */ 2526 if (!angband_term[j]) continue; 2527 2528 /* Ignore non-changes */ 2529 if (op_ptr->window_flag[j] == old_flag[j]) continue; 2530 2531 /* Activate */ 2532 Term_activate(angband_term[j]); 2533 2534 /* Erase */ 2535 Term_clear(); 2536 2537 /* Refresh */ 2538 Term_fresh(); 2539 2540 /* Restore */ 2541 Term_activate(old); 2542 } 2518 subwindows_set_flags(new_flags, ANGBAND_TERM_MAX); 2543 2519 } 2544 2520 trunk/src/cmd5.c
r507 r522 786 786 787 787 /* Redraw Study Status */ 788 p_ptr->redraw |= (PR_STUDY); 789 790 /* Redraw object recall */ 791 p_ptr->window |= (PW_OBJECT); 788 p_ptr->redraw |= (PR_STUDY | PR_OBJECT); 789 792 790 } 793 791 … … 916 914 917 915 /* Redraw object recall */ 918 p_ptr-> window |= (PW_OBJECT);916 p_ptr->redraw |= (PR_OBJECT); 919 917 } 920 918 } … … 960 958 /* Redraw mana */ 961 959 p_ptr->redraw |= (PR_MANA); 962 963 /* Window stuff */964 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);965 960 } 966 961 … … 1086 1081 1087 1082 /* Redraw object recall */ 1088 p_ptr-> window |= (PW_OBJECT);1083 p_ptr->redraw |= (PR_OBJECT); 1089 1084 } 1090 1085 } … … 1130 1125 /* Redraw mana */ 1131 1126 p_ptr->redraw |= (PR_MANA); 1132 1133 /* Window stuff */1134 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);1135 1127 } trunk/src/cmd6.c
r513 r522 261 261 /* Mark as tried and redisplay */ 262 262 p_ptr->notice |= (PN_COMBINE | PN_REORDER); 263 p_ptr-> window |= (PW_INVEN | PW_EQUIP);263 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 264 264 265 265 trunk/src/defines.h
r519 r522 1601 1601 #define PR_MANA 0x00000080L /* Display Mana */ 1602 1602 #define PR_GOLD 0x00000100L /* Display Gold */ 1603 #define PR_EQUIPPY 0x00000400L /* Display Equippy chars */ 1603 1604 1604 #define PR_HEALTH 0x00000800L /* Display Health Bar */ 1605 1605 #define PR_SPEED 0x00001000L /* Display Extra (Speed) */ 1606 1606 #define PR_STUDY 0x00002000L /* Display Extra (Study) */ 1607 1607 #define PR_DEPTH 0x00004000L /* Display Depth */ 1608 #define PR_STATUS 0x00008000L1608 #define PR_STATUS 0x00008000L 1609 1609 #define PR_DTRAP 0x00010000L /* Trap detection indicator */ 1610 1610 #define PR_STATE 0x00020000L /* Display Extra (State) */ 1611 1611 #define PR_MAP 0x00040000L /* Display Map */ 1612 1612 1613 #define PR_INVEN 0x00080000L /* Display inven/equip */ 1614 #define PR_EQUIP 0x00100000L /* Display equip/inven */ 1615 #define PR_MESSAGE 0x00200000L /* Display messages */ 1616 #define PR_MONSTER 0x00400000L /* Display monster recall */ 1617 #define PR_OBJECT 0x00800000L /* Display object recall */ 1618 #define PR_MONLIST 0x01000000L /* Display monster list */ 1613 1619 1614 1620 /* Display Basic Info */ … … 1616 1622 (PR_MISC | PR_TITLE | PR_STATS | PR_LEV |\ 1617 1623 PR_EXP | PR_GOLD | PR_ARMOR | PR_HP |\ 1618 PR_MANA | PR_DEPTH | PR_HEALTH | PR_ EQUIPPY | PR_SPEED)1624 PR_MANA | PR_DEPTH | PR_HEALTH | PR_SPEED) 1619 1625 1620 1626 /* Display Extra Info */ trunk/src/dungeon.c
r507 r522 231 231 p_ptr->notice |= (PN_COMBINE | PN_REORDER); 232 232 233 /* Window stuff */234 p_ptr-> window |= (PW_INVEN | PW_EQUIP);233 /* Redraw stuff */ 234 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 235 235 } 236 236 } … … 278 278 /* Redraw */ 279 279 p_ptr->redraw |= (PR_HP); 280 281 /* Window stuff */282 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);283 280 } 284 281 } … … 324 321 /* Redraw */ 325 322 p_ptr->redraw |= (PR_MANA); 326 327 /* Window stuff */328 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);329 323 } 330 324 } … … 475 469 { 476 470 /* Window stuff */ 477 p_ptr-> window |= (PW_EQUIP);471 p_ptr->redraw |= (PR_EQUIP); 478 472 } 479 473 … … 522 516 p_ptr->notice |= (PN_COMBINE); 523 517 524 /* Window stuff */525 p_ptr-> window |= (PW_INVEN);518 /* Redraw stuff */ 519 p_ptr->redraw |= (PR_INVEN); 526 520 } 527 521 … … 924 918 if ((o_ptr->timeout < 100) || (!(o_ptr->timeout % 100))) 925 919 { 926 /* Window stuff */927 p_ptr-> window |= (PW_EQUIP);920 /* Redraw stuff */ 921 p_ptr->redraw |= (PR_EQUIP); 928 922 } 929 923 … … 1100 1094 old_cast_spell = l_ptr->cast_spell; 1101 1095 1102 /* Window stuff */ 1103 p_ptr->window |= (PW_MONSTER); 1104 1105 /* Window stuff */ 1106 window_stuff(); 1096 /* Redraw stuff */ 1097 p_ptr->redraw |= (PR_MONSTER); 1098 redraw_stuff(); 1107 1099 } 1108 1100 } … … 1203 1195 if (p_ptr->redraw) redraw_stuff(); 1204 1196 1205 /* Redraw stuff (if needed) */1206 if (p_ptr->window) window_stuff();1207 1208 1197 1209 1198 /* Place the cursor on the player */ … … 1254 1243 /* Redraw stuff (if needed) */ 1255 1244 if (p_ptr->redraw) redraw_stuff(); 1256 1257 /* Window stuff (if needed) */1258 if (p_ptr->window) window_stuff();1259 1245 } 1260 1246 … … 1357 1343 { 1358 1344 p_ptr->redraw |= (PR_MAP); 1359 p_ptr->window |= (PW_MAP);1360 1345 } 1361 1346 … … 1581 1566 1582 1567 /* Redraw dungeon */ 1583 p_ptr->redraw |= (PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY); 1584 1585 /* Window stuff */ 1586 p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER_0 | PW_PLAYER_1); 1587 1588 /* Window stuff */ 1589 p_ptr->window |= (PW_MONSTER | PW_MONLIST); 1590 1591 /* Window stuff */ 1592 p_ptr->window |= (PW_OVERHEAD | PW_MAP); 1568 p_ptr->redraw |= (PR_BASIC | PR_EXTRA | PR_MAP); 1569 1570 /* Redraw "statusy" things */ 1571 p_ptr->redraw |= (PR_INVEN | PR_EQUIP | PR_MONSTER | PR_MONLIST); 1593 1572 1594 1573 /* Update stuff */ … … 1598 1577 redraw_stuff(); 1599 1578 1600 /* Redraw stuff */1601 window_stuff();1602 1603 1579 1604 1580 /* Hack -- Decrease "xtra" depth */ … … 1621 1597 redraw_stuff(); 1622 1598 1623 /* Window stuff */1624 window_stuff();1625 1626 1599 /* Refresh */ 1627 1600 Term_fresh(); … … 1678 1651 if (p_ptr->redraw) redraw_stuff(); 1679 1652 1680 /* Redraw stuff */1681 if (p_ptr->window) window_stuff();1682 1683 1653 /* Hack -- Hilite the player */ 1684 1654 move_cursor_relative(p_ptr->py, p_ptr->px); … … 1700 1670 if (p_ptr->redraw) redraw_stuff(); 1701 1671 1702 /* Redraw stuff */1703 if (p_ptr->window) window_stuff();1704 1705 1672 /* Hack -- Hilite the player */ 1706 1673 move_cursor_relative(p_ptr->py, p_ptr->px); … … 1721 1688 /* Redraw stuff */ 1722 1689 if (p_ptr->redraw) redraw_stuff(); 1723 1724 /* Window stuff */1725 if (p_ptr->window) window_stuff();1726 1690 1727 1691 /* Hack -- Hilite the player */ … … 1949 1913 1950 1914 1951 /* Window stuff */ 1952 p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER_0 | PW_PLAYER_1); 1953 p_ptr->window |= (PW_MONSTER | PW_MESSAGE); 1954 window_stuff(); 1915 /* Redraw stuff */ 1916 p_ptr->redraw |= (PR_INVEN | PR_EQUIP | PR_MONSTER | PR_MESSAGE); 1917 redraw_stuff(); 1955 1918 1956 1919 … … 1999 1962 /* Redraw stuff */ 2000 1963 if (p_ptr->redraw) redraw_stuff(); 2001 2002 /* Window stuff */2003 if (p_ptr->window) window_stuff();2004 1964 2005 1965 trunk/src/effects.c
r449 r522 371 371 msg_print("Your feel your head clear."); 372 372 p_ptr->redraw |= (PR_MANA); 373 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);374 373 *ident = TRUE; 375 374 } … … 1446 1445 msg_print("Your feel your head clear."); 1447 1446 p_ptr->redraw |= (PR_MANA); 1448 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);1449 1447 } 1450 1448 return TRUE; trunk/src/externs.h
r505 r522 695 695 extern s16b modify_stat_value(int value, int amount); 696 696 extern int calc_blows(const object_type *o_ptr); 697 extern void display_player_compact(void); 697 698 extern void notice_stuff(void); 698 699 extern void update_stuff(void); … … 700 701 extern void window_stuff(void); 701 702 extern void handle_stuff(void); 703 extern void init_display(void); 702 704 703 705 /* xtra2.c */ trunk/src/init2.c
r520 r522 1428 1428 char buf[1024]; 1429 1429 1430 /* Set up the display handlers and things. */ 1431 init_display(); 1430 1432 1431 1433 /*** Verify the "news" file ***/ trunk/src/load.c
r507 r522 909 909 if (window_flag_desc[i]) 910 910 { 911 /* Processvalid flags */912 if ( window_mask[n] & (1L << i))911 /* Blank invalid flags */ 912 if (!(window_mask[n] & (1L << i))) 913 913 { 914 /* Set */ 915 if (window_flag[n] & (1L << i)) 916 { 917 /* Set */ 918 op_ptr->window_flag[n] |= (1L << i); 919 } 914 window_flag[n] &= ~(1L << i); 920 915 } 921 916 } 922 917 } 923 918 } 919 920 /* Set up the subwindows */ 921 subwindows_set_flags(window_flag, ANGBAND_TERM_MAX); 924 922 } 925 923 trunk/src/loadsave.c
r516 r522 780 780 char nb[KEYLEN]; 781 781 smap_t *s; 782 u32b window_flags[ANGBAND_TERM_MAX]; 782 783 783 784 s = load_smap(opt_block); … … 795 796 { 796 797 strnfmt(nb, KEYLEN, "window_flag[%u]", (unsigned int)i); 797 op_ptr->window_flag[i] = smap_get_u32b(s, nb); 798 } 798 window_flags[i] = smap_get_u32b(s, nb); 799 } 800 801 subwindows_set_flags(window_flags, ANGBAND_TERM_MAX); 799 802 800 803 smap_free(s); trunk/src/melee1.c
r507 r522 570 570 p_ptr->notice |= (PN_COMBINE | PN_REORDER); 571 571 572 /* Window stuff */573 p_ptr-> window |= (PW_INVEN);572 /* Redraw stuff */ 573 p_ptr->redraw |= (PR_INVEN); 574 574 575 575 /* Affect only a single inventory slot */ … … 627 627 p_ptr->redraw |= (PR_GOLD); 628 628 629 /* Window stuff */630 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);631 632 629 /* Blink away */ 633 630 blinked = TRUE; … … 788 785 } 789 786 790 /* Window stuff */791 p_ptr-> window |= (PW_EQUIP);787 /* Redraw stuff */ 788 p_ptr->redraw |= (PR_EQUIP); 792 789 } 793 790 trunk/src/melee2.c
r520 r522 1316 1316 p_ptr->redraw |= (PR_MANA); 1317 1317 1318 /* Window stuff */1319 p_ptr->window |= (PW_PLAYER_0 | PW_PLAYER_1);1320 1321 1318 /* Heal the monster */ 1322 1319 if (m_ptr->hp < m_ptr->maxhp) trunk/src/monster2.c
r520 r522 882 882 { 883 883 /* Window stuff */ 884 p_ptr-> window |= (PW_MONSTER);884 p_ptr->redraw |= (PR_MONSTER); 885 885 } 886 886 } … … 919 919 { 920 920 /* Window stuff */ 921 p_ptr-> window |= (PW_MONSTER);921 p_ptr->redraw |= (PR_MONSTER); 922 922 } 923 923 } … … 1162 1162 1163 1163 /* Window stuff */ 1164 p_ptr-> window |= PW_MONLIST;1164 p_ptr->redraw |= PR_MONLIST; 1165 1165 } 1166 1166 } … … 1185 1185 1186 1186 /* Window stuff */ 1187 p_ptr-> window |= PW_MONLIST;1187 p_ptr->redraw |= PR_MONLIST; 1188 1188 } 1189 1189 } … … 1368 1368 1369 1369 /* Window stuff */ 1370 p_ptr-> window |= (PW_OVERHEAD | PW_MAP);1370 p_ptr->redraw |= (PR_MAP); 1371 1371 } 1372 1372 … … 1404 1404 1405 1405 /* Window stuff */ 1406 p_ptr-> window |= (PW_OVERHEAD | PW_MAP);1406 p_ptr->redraw |= (PR_MAP); 1407 1407 } 1408 1408 trunk/src/object1.c
r507 r522 2548 2548 2549 2549 /* 2550 * Flip "inven" and "equip" in any sub-windows2551 */2552 void toggle_inven_equip(void)2553 {2554 int j;2555 2556 /* Scan windows */2557 for (j = 0; j < ANGBAND_TERM_MAX; j++)2558 {2559 /* Unused */2560 if (!angband_term[j]) continue;2561 2562 /* Flip inven to equip */2563 if (op_ptr->window_flag[j] & (PW_INVEN))2564 {2565 /* Flip flags */2566 op_ptr->window_flag[j] &= ~(PW_INVEN);2567 op_ptr->window_flag[j] |= (PW_EQUIP);2568 2569 /* Window stuff */2570 p_ptr->window |= (PW_EQUIP);2571 }2572 2573 /* Flip inven to equip */2574 else if (op_ptr->window_flag[j] & (PW_EQUIP))2575 {2576 /* Flip flags */2577 op_ptr->window_flag[j] &= ~(PW_EQUIP);2578 op_ptr->window_flag[j] |= (PW_INVEN);2579 2580 /* Window stuff */2581 p_ptr->window |= (PW_INVEN);2582 }2583 }2584 }2585 2586 2587 2588 2589 /*2590 2550 * Verify the choice of an item. 2591 2551 * … … 3014 2974 } 3015 2975 3016 /* Update*/3017 p_ptr-> window |= (PW_INVEN | PW_EQUIP);2976 /* Redraw */ 2977 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 3018 2978 3019 2979 /* Redraw windows */ 3020 window_stuff();2980 redraw_stuff(); 3021 2981 3022 2982 /* Viewing inventory */ … … 3488 3448 3489 3449 /* Update */ 3490 p_ptr->window |= (PW_INVEN | PW_EQUIP); 3491 3492 /* Window stuff */ 3493 window_stuff(); 3450 p_ptr->redraw |= (PR_INVEN | PR_EQUIP); 3451 redraw_stuff(); 3494 3452 3495 3453 trunk/src/object2.c
r512 r522 339 339 p_ptr->redraw |= (PR_MAP); 340 340 341 /* Window stuff */342 p_ptr->window |= (PW_OVERHEAD | PW_MAP);343 344 341 345 342 … … 743 740 /* Redraw map */ 744 741 p_ptr->redraw |= (PR_MAP); 745 746 /* Window stuff */747 p_ptr->window |= (PW_OVERHEAD | PW_MAP);748 742 } 749 743 } … … 3562 3556 p_ptr->notice |= (PN
