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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.228 by elmex, Sun Jan 18 17:50:19 2009 UTC vs.
Revision 1.229 by root, Sat Jun 27 03:51:05 2009 UTC

1527 arrow->direction = dir; 1527 arrow->direction = dir;
1528 1528
1529 arrow->stats.sp = arrow->stats.wc; /* save original wc, dam, attacktype and slaying */ 1529 arrow->stats.sp = arrow->stats.wc; /* save original wc, dam, attacktype and slaying */
1530 arrow->stats.hp = arrow->stats.dam; 1530 arrow->stats.hp = arrow->stats.dam;
1531 arrow->stats.grace = arrow->attacktype; 1531 arrow->stats.grace = arrow->attacktype;
1532
1533 if (arrow->slaying)
1534 arrow->spellarg = strdup (arrow->slaying); 1532 arrow->spellarg = arrow->slaying;
1535 1533
1536#if 0 1534#if 0
1537 if (player *pl = op->contr) 1535 if (player *pl = op->contr)
1538 { 1536 {
1539 float speed = pl->weapon_sp; 1537 float speed = pl->weapon_sp;
1753 case BOW: 1751 case BOW:
1754 player_fire_bow (op, dir); 1752 player_fire_bow (op, dir);
1755 break; 1753 break;
1756 1754
1757 case SPELL: 1755 case SPELL:
1758 spellcost = cast_spell (op, op, dir, ob, pl->spellparam[0] ? pl->spellparam : 0); 1756 spellcost = cast_spell (op, op, dir, ob, *pl->spellparam ? pl->spellparam : 0);
1759 break; 1757 break;
1760 1758
1761 case BUILDER: 1759 case BUILDER:
1762 apply_map_builder (op, dir); 1760 apply_map_builder (op, dir);
1763 break; 1761 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines