Changeset 809
- Timestamp:
- 05/03/07 18:07:35 (2 years ago)
- Files:
-
- 1.8.3/branches/devel/CHANGES.182 (modified) (1 diff)
- 1.8.3/branches/devel/CHANGES.183 (modified) (1 diff)
- 1.8.3/branches/devel/game/txt/hlp/penncmd.hlp (modified) (1 diff)
- 1.8.3/branches/devel/src/attrib.c (modified) (5 diffs)
- 1.8.3/branches/devel/src/db.c (modified) (1 diff)
- 1.8.3/branches/devel/src/set.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/CHANGES.182
r799 r809 48 48 * NetBSD compile and general warning fixes. [SW] 49 49 * Favor difftime(3) over subtraction of time_t variables. [SW] 50 * Clarification of attribute trees in HELP @WIPE. Suggested by 51 Talvo. 50 52 51 53 Version 1.8.2 patchlevel 3 March 11, 2007 1.8.3/branches/devel/CHANGES.183
r794 r809 50 50 * wrap() of Pueblo tags didn't work very well. Fixed by 51 51 Sketch. 52 52 * @wipe's count is accurate when attribute trees are being 53 deleted. Reported by Talvo. 54 53 55 Version 1.8.3 patchlevel 1 March 11, 2007 54 56 1.8.3/branches/devel/game/txt/hlp/penncmd.hlp
r769 r809 3596 3596 all attributes which match that pattern. Note that the restrictions 3597 3597 above still apply. 3598 3599 When wiping an attribute that is the root of an attribute tree, all 3600 attributes in that tree will also be removed. 3598 3601 & @wizwall 3599 3602 @wizwall[/emit] <message> 1.8.3/branches/devel/src/attrib.c
r803 r809 680 680 ATTR *ptr, **prev, *sub; 681 681 size_t len; 682 int wiped = 0; 682 683 683 684 prev = &List(thing); … … 711 712 atr_free_list = ptr; 712 713 AttrCount(thing)--; 714 wiped++; 713 715 714 716 if (we_are_wiping && sub) { … … 727 729 atr_free_list = ptr; 728 730 AttrCount(thing)--; 731 wiped++; 729 732 730 733 ptr = *prev; 731 734 } 732 735 } 733 return 1;736 return wiped; 734 737 } 735 738 … … 741 744 * \param atr name of attribute to remove. 742 745 * \param player enactor attempting to remove attribute. 743 * \retval 0 no attribute found to reset746 * \retval The number of attributes removed. 744 747 * \retval AE_SAFE attribute is safe 745 748 * \retval AE_ERROR other failure … … 758 761 * \param atr name of attribute to remove. 759 762 * \param player enactor attempting to remove attribute. 760 * \retval 0 no attribute found to reset763 * \retval The number of attributes removed 761 764 * \retval AE_SAFE attribute is safe 762 765 * \retval AE_ERROR other failure 1.8.3/branches/devel/src/db.c
r807 r809 1382 1382 } 1383 1383 1384 if (IsPlayer(i) && (strlen(o->name) > PLAYER_NAME_LIMIT)) {1384 if (IsPlayer(i) && (strlen(o->name) > (size_t)PLAYER_NAME_LIMIT)) { 1385 1385 char buff[BUFFER_LEN + 1]; /* The name plus a NUL */ 1386 1386 strncpy(buff, o->name, PLAYER_NAME_LIMIT); 1.8.3/branches/devel/src/set.c
r803 r809 1095 1095 * attr still works, though. 1096 1096 */ 1097 int wiped; 1098 1097 1099 if (wildcard(pattern) && AF_Wizard(atr) && !God(player)) 1098 1100 return 0; 1099 1101 1100 switch (wipe_atr(thing, AL_NAME(atr), player)) { 1101 case 0: 1102 return 0; 1102 switch ((wiped = wipe_atr(thing, AL_NAME(atr), player))) { 1103 1103 case AE_SAFE: 1104 1104 notify_format(player, T("Attribute %s is SAFE. Set it !SAFE to modify it."), … … 1109 1109 return 0; 1110 1110 default: 1111 return 1;1111 return wiped; 1112 1112 } 1113 1113 }
