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

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.8 by root, Sun Sep 10 15:59:57 2006 UTC vs.
Revision 1.9 by root, Tue Sep 12 19:20:08 2006 UTC

1 1
2/* 2/*
3 * static char *rcsid_spell_effect_c = 3 * static char *rcsid_spell_effect_c =
4 * "$Id: spell_effect.C,v 1.8 2006/09/10 15:59:57 root Exp $"; 4 * "$Id: spell_effect.C,v 1.9 2006/09/12 19:20:08 root Exp $";
5 */ 5 */
6 6
7 7
8/* 8/*
9 CrossFire, A Multiplayer game for X-windows 9 CrossFire, A Multiplayer game for X-windows
2730 return 0; 2730 return 0;
2731 } 2731 }
2732 if (!spell->other_arch) 2732 if (!spell->other_arch)
2733 return 0; 2733 return 0;
2734 tmp = arch_to_object (spell->other_arch); 2734 tmp = arch_to_object (spell->other_arch);
2735 strncpy (rune, msg, HUGE_BUF - 2); 2735
2736 rune[HUGE_BUF - 2] = 0; 2736 snprintf (rune, sizeof (rune), "%s\n", msg);
2737 strcat (rune, "\n"); 2737
2738 tmp->race = op->name; /*Save the owner of the rune */ 2738 tmp->race = op->name; /*Save the owner of the rune */
2739 tmp->msg = rune; 2739 tmp->msg = rune;
2740 tmp->x = op->x; 2740 tmp->x = op->x;
2741 tmp->y = op->y; 2741 tmp->y = op->y;
2742 insert_ob_in_map (tmp, op->map, op, INS_BELOW_ORIGINATOR); 2742 insert_ob_in_map (tmp, op->map, op, INS_BELOW_ORIGINATOR);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines