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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.247 by root, Tue Apr 6 03:59:19 2010 UTC vs.
Revision 1.248 by root, Tue Apr 6 04:28:48 2010 UTC

3578 * item in the container. Otherwise, use the map. 3578 * item in the container. Otherwise, use the map.
3579 */ 3579 */
3580 3580
3581 // first try to apply "applyables" 3581 // first try to apply "applyables"
3582 for (object *tmp = top; tmp; tmp = tmp->below) 3582 for (object *tmp = top; tmp; tmp = tmp->below)
3583 // the tmp->cb is a hack to allow user-extendable types...
3583 if (!tmp->invisible && may_attempt [tmp->type]) 3584 if (!tmp->invisible && (may_attempt [tmp->type] || tmp->cb))
3584 { 3585 {
3585 // If it is visible, player can apply it. 3586 // If it is visible, player can apply it.
3586 pl->apply (tmp); 3587 pl->apply (tmp);
3587 return; 3588 return;
3588 } 3589 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines