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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.178 by root, Sat Jan 5 06:11:28 2008 UTC vs.
Revision 1.179 by root, Sun Jan 13 13:20:43 2008 UTC

1352 */ 1352 */
1353object * 1353object *
1354find_arrow (object *op, const char *type) 1354find_arrow (object *op, const char *type)
1355{ 1355{
1356 for (object *tmp = op->inv; tmp; tmp = tmp->below) 1356 for (object *tmp = op->inv; tmp; tmp = tmp->below)
1357 if (tmp->type == ARROW && !strcmp (tmp->race, type)) 1357 if (tmp->type == ARROW && !strcmp (&tmp->race, type))
1358 return splay (tmp); 1358 return splay (tmp);
1359 1359
1360 for (object *tmp = op->inv; tmp; tmp = tmp->below) 1360 for (object *tmp = op->inv; tmp; tmp = tmp->below)
1361 if (tmp->type == CONTAINER && QUERY_FLAG (tmp, FLAG_APPLIED) && !strcmp (tmp->race, type)) 1361 if (tmp->type == CONTAINER && QUERY_FLAG (tmp, FLAG_APPLIED) && !strcmp (&tmp->race, type))
1362 if (object *arrow = find_arrow (tmp, type)) 1362 if (object *arrow = find_arrow (tmp, type))
1363 { 1363 {
1364 splay (tmp); 1364 splay (tmp);
1365 return arrow; 1365 return arrow;
1366 } 1366 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines