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.48 by root, Wed Dec 20 09:14:22 2006 UTC vs.
Revision 1.49 by root, Thu Dec 21 05:15:18 2006 UTC

3901 } 3901 }
3902 } 3902 }
3903 fix_player (who); 3903 fix_player (who);
3904} 3904}
3905 3905
3906
3907/** 3906/**
3908 * Designed primarily to light torches/lanterns/etc. 3907 * Designed primarily to light torches/lanterns/etc.
3909 * Also burns up burnable material too. First object in the inventory is 3908 * Also burns up burnable material too. First object in the inventory is
3910 * the selected object to "burn". -b.t. 3909 * the selected object to "burn". -b.t.
3911 */ 3910 */
3912
3913void 3911void
3914apply_lighter (object *who, object *lighter) 3912apply_lighter (object *who, object *lighter)
3915{ 3913{
3916 object *item; 3914 object *item;
3917 int is_player_env = 0; 3915 int is_player_env = 0;
3951 if (who == item->in_player ()) 3949 if (who == item->in_player ())
3952 is_player_env = 1; 3950 is_player_env = 1;
3953 3951
3954 save_throw_object (item, AT_FIRE, who); 3952 save_throw_object (item, AT_FIRE, who);
3955 3953
3956 if (!item->destroyed ()) 3954 if (item->destroyed ())
3957 { 3955 {
3958 new_draw_info_format (NDI_UNIQUE, 0, who, "You light the %s with the %s.", &item->name, &lighter->name); 3956 new_draw_info_format (NDI_UNIQUE, 0, who, "You light the %s with the %s.", &item->name, &lighter->name);
3959 /* Need to update the player so that the players glow radius 3957 /* Need to update the player so that the players glow radius
3960 * gets changed. 3958 * gets changed.
3961 */ 3959 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines