ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/arch.C
(Generate patch)

Comparing deliantra/server/common/arch.C (file contents):
Revision 1.39 by root, Fri Feb 2 22:07:51 2007 UTC vs.
Revision 1.41 by root, Thu Feb 8 03:09:31 2007 UTC

179item_matched_string (object *pl, object *op, const char *name) 179item_matched_string (object *pl, object *op, const char *name)
180{ 180{
181 char *cp, local_name[MAX_BUF]; 181 char *cp, local_name[MAX_BUF];
182 int count, retval = 0; 182 int count, retval = 0;
183 183
184 strcpy (local_name, name); /* strtok is destructive to name */ 184 assign (local_name, name); /* strtok is destructive to name */
185 185
186 for (cp = strtok (local_name, ","); cp; cp = strtok (NULL, ",")) 186 for (cp = strtok (local_name, ","); cp; cp = strtok (NULL, ","))
187 { 187 {
188 while (cp[0] == ' ') 188 while (cp[0] == ' ')
189 ++cp; /* get rid of spaces */ 189 ++cp; /* get rid of spaces */
446 { 446 {
447 *cp = '\0'; 447 *cp = '\0';
448 cp--; 448 cp--;
449 } 449 }
450 } 450 }
451 if (!strcmp ("Object", variable)) 451 if (!strcmp ("object", variable))
452 { 452 {
453 if ((at = archetype::find (argument)) == NULL) 453 if ((at = archetype::find (argument)) == NULL)
454 LOG (llevError, "Warning: failed to find arch %s\n", argument); 454 LOG (llevError, "Warning: failed to find arch %s\n", argument);
455 } 455 }
456 else if (!strcmp ("other_arch", variable)) 456 else if (!strcmp ("other_arch", variable))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines