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.53 by root, Mon Dec 25 14:43:23 2006 UTC vs.
Revision 1.54 by root, Tue Dec 26 08:54:59 2006 UTC

3756 else if (tmp->type == TIMED_GATE) 3756 else if (tmp->type == TIMED_GATE)
3757 { 3757 {
3758 object *head = tmp->head != NULL ? tmp->head : tmp; 3758 object *head = tmp->head != NULL ? tmp->head : tmp;
3759 3759
3760 if (QUERY_FLAG (head, FLAG_IS_LINKED)) 3760 if (QUERY_FLAG (head, FLAG_IS_LINKED))
3761 {
3762 tmp->speed = 0; 3761 tmp->set_speed (0);
3763 update_ob_speed (tmp);
3764 }
3765 } 3762 }
3766 /* This function can be called everytime a map is loaded, even when 3763 /* This function can be called everytime a map is loaded, even when
3767 * swapping back in. As such, we don't want to create the treasure 3764 * swapping back in. As such, we don't want to create the treasure
3768 * over and ove again, so after we generate the treasure, blank out 3765 * over and ove again, so after we generate the treasure, blank out
3769 * randomitems so if it is swapped in again, it won't make anything. 3766 * randomitems so if it is swapped in again, it won't make anything.
3822 } 3819 }
3823 } 3820 }
3824 3821
3825 if (did_one) 3822 if (did_one)
3826 { 3823 {
3827 force->speed = 0.1; 3824 force->set_speed (0.1);
3828 update_ob_speed (force);
3829 /* bigger morsel of food = longer effect time */ 3825 /* bigger morsel of food = longer effect time */
3830 force->duration = food->stats.food / 5; 3826 force->duration = food->stats.food / 5;
3831 SET_FLAG (force, FLAG_APPLIED); 3827 SET_FLAG (force, FLAG_APPLIED);
3832 change_abil (who, force); 3828 change_abil (who, force);
3833 insert_ob_in_ob (force, who); 3829 insert_ob_in_ob (force, who);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines