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.41 by root, Fri May 11 21:07:14 2007 UTC vs.
Revision 1.42 by root, Sat May 12 08:36:35 2007 UTC

249 // optimise this supposedly common case 249 // optimise this supposedly common case
250 if (new_skill == who->chosen_skill) 250 if (new_skill == who->chosen_skill)
251 return 1; 251 return 1;
252 252
253 if (who->chosen_skill) 253 if (who->chosen_skill)
254 {
254 apply_special (who, who->chosen_skill, AP_UNAPPLY); 255 apply_special (who, who->chosen_skill, AP_UNAPPLY);
256 who->chosen_skill = 0;//D verify wether necessary
257 }
255 258
256 if (!new_skill) 259 if (!new_skill)
257 { 260 {
258 LOG (llevError | logBacktrace, "change_skill called on %s with NULL skill\n", 261 LOG (llevError | logBacktrace, "change_skill called on %s with NULL skill\n",
259 who->debug_desc ()); 262 who->debug_desc ());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines