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.38 by root, Tue Dec 12 22:37:05 2006 UTC vs.
Revision 1.39 by root, Wed Dec 13 00:42:04 2006 UTC

1850 } 1850 }
1851 return; 1851 return;
1852 } 1852 }
1853 1853
1854 play_sound_player_only (op->contr, SOUND_LEARN_SPELL, 0, 0); 1854 play_sound_player_only (op->contr, SOUND_LEARN_SPELL, 0, 0);
1855 tmp = object::create (); 1855 tmp = spell->clone ();
1856 spell->copy_to (tmp);
1857 insert_ob_in_ob (tmp, op); 1856 insert_ob_in_ob (tmp, op);
1858 1857
1859 if (special_prayer) 1858 if (special_prayer)
1860 {
1861 SET_FLAG (tmp, FLAG_STARTEQUIP); 1859 SET_FLAG (tmp, FLAG_STARTEQUIP);
1862 }
1863 1860
1864 esrv_add_spells (op->contr, tmp); 1861 esrv_add_spells (op->contr, tmp);
1865} 1862}
1866 1863
1867/** 1864/**
3921 { /* lighter gets used up */ 3918 { /* lighter gets used up */
3922 /* Split multiple lighters if they're being used up. Otherwise * 3919 /* Split multiple lighters if they're being used up. Otherwise *
3923 * one charge from each would be used up. --DAMN */ 3920 * one charge from each would be used up. --DAMN */
3924 if (lighter->nrof > 1) 3921 if (lighter->nrof > 1)
3925 { 3922 {
3926 object *oneLighter = object::create (); 3923 object *oneLighter = lighter->clone ();
3927 3924
3928 lighter->copy_to (oneLighter);
3929 lighter->nrof -= 1; 3925 lighter->nrof -= 1;
3930 oneLighter->nrof = 1; 3926 oneLighter->nrof = 1;
3931 oneLighter->stats.food--; 3927 oneLighter->stats.food--;
3932 esrv_send_item (who, lighter); 3928 esrv_send_item (who, lighter);
3933 oneLighter = insert_ob_in_ob (oneLighter, who); 3929 oneLighter = insert_ob_in_ob (oneLighter, who);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines