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.151 by root, Wed Apr 30 06:40:28 2008 UTC vs.
Revision 1.152 by root, Fri May 2 20:16:24 2008 UTC

160 * matching item. 160 * matching item.
161 **/ 161 **/
162void 162void
163handle_apply_yield (object *tmp) 163handle_apply_yield (object *tmp)
164{ 164{
165 const char *yield;
166
167 yield = get_ob_key_value (tmp, "on_use_yield"); 165 if (const char *yield = get_ob_key_value (tmp, "on_use_yield"))
168
169 if (yield)
170 get_archetype (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR); 166 archetype::get (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR);
171} 167}
172 168
173/** 169/**
174 * Handles applying a potion. 170 * Handles applying a potion.
175 */ 171 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines