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

Comparing deliantra/server/server/skill_util.C (file contents):
Revision 1.37 by root, Thu May 3 09:39:56 2007 UTC vs.
Revision 1.38 by root, Thu May 3 10:39:46 2007 UTC

930 LOG (llevError, "Could not find anything to attack on %s\n", &op->name); 930 LOG (llevError, "Could not find anything to attack on %s\n", &op->name);
931 return 0; 931 return 0;
932 } 932 }
933 } 933 }
934 934
935 if (op->current_weapon != pl->combat_ob)
936 {
937 op->current_weapon = pl->combat_ob; 935 op->set_weapon (pl->combat_ob);
938 new_draw_info_format (NDI_UNIQUE, 0, op, "You switch to your %s.", &op->current_weapon->name);
939 op->update_stats ();
940 }
941 936
942 /* lose invisiblity/hiding status for running attacks */ 937 /* lose invisiblity/hiding status for running attacks */
943
944 if (pl->tmp_invis) 938 if (pl->tmp_invis)
945 { 939 {
946 pl->tmp_invis = 0; 940 pl->tmp_invis = 0;
947 op->invisible = 0; 941 op->invisible = 0;
948 op->hide = 0; 942 op->hide = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines