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

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.64 by root, Thu May 17 14:14:55 2007 UTC vs.
Revision 1.65 by root, Fri May 18 20:42:41 2007 UTC

751 /* Decrease speed BEFORE calling process_object. Otherwise, an 751 /* Decrease speed BEFORE calling process_object. Otherwise, an
752 * infinite loop occurs, with process_object calling move_monster, 752 * infinite loop occurs, with process_object calling move_monster,
753 * which then gets here again. By decreasing the speed before 753 * which then gets here again. By decreasing the speed before
754 * we call process_object, the 'if' statement above will fail. 754 * we call process_object, the 'if' statement above will fail.
755 */ 755 */
756 op->speed_left--; 756 --op->speed_left;
757 process_object (op); 757 process_object (op);
758 758
759 if (op->destroyed () || hitter->destroyed () || abort_attack (op, hitter, simple_attack)) 759 if (op->destroyed () || hitter->destroyed () || abort_attack (op, hitter, simple_attack))
760 goto error; 760 goto error;
761 } 761 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines