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

Comparing deliantra/server/server/c_object.C (file contents):
Revision 1.53 by root, Thu May 17 14:14:55 2007 UTC vs.
Revision 1.54 by root, Thu May 17 20:27:01 2007 UTC

90 * Shortcut to find_best_apply_object_match(pl, params, AF_NULL); 90 * Shortcut to find_best_apply_object_match(pl, params, AF_NULL);
91 **/ 91 **/
92object * 92object *
93find_best_object_match (object *pl, const char *params) 93find_best_object_match (object *pl, const char *params)
94{ 94{
95 return find_best_apply_object_match (pl, params, AP_NULL); 95 return find_best_apply_object_match (pl, params, AP_TOGGLE);
96} 96}
97 97
98int 98int
99command_uskill (object *pl, char *params) 99command_uskill (object *pl, char *params)
100{ 100{
124 { 124 {
125 new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params); 125 new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params);
126 return 0; 126 return 0;
127 } 127 }
128 128
129 return change_skill (pl, skill, 0); 129 pl->change_skill (0);
130 apply_special (pl, skill, AP_APPLY);
131 return 1;
130} 132}
131 133
132/* These functions (command_search, command_disarm) are really just wrappers for 134/* These functions (command_search, command_disarm) are really just wrappers for
133 * things like 'use_skill ...'). In fact, they should really be obsoleted 135 * things like 'use_skill ...'). In fact, they should really be obsoleted
134 * and replaced with those. 136 * and replaced with those.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines