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

Comparing deliantra/server/server/skills.C (file contents):
Revision 1.45 by root, Thu Nov 8 19:43:28 2007 UTC vs.
Revision 1.46 by root, Sat Apr 19 19:59:52 2008 UTC

590 590
591 dex = dex ? dex : 15; 591 dex = dex ? dex : 15;
592 str = str ? str : 10; 592 str = str ? str : 10;
593 593
594 int stats = str * str * str * dex * skill->level; 594 int stats = str * str * str * dex * skill->level;
595 int spaces = min (min (3, skill->level), pl->carrying ? stats / pl->carrying : 0); 595 int spaces = min (3, skill->level, stats / (pl->carrying + 1));
596 596
597 if (spaces == 0) 597 if (spaces == 0)
598 { 598 {
599 new_draw_info (NDI_UNIQUE, 0, pl, "You are carrying too much weight to jump."); 599 new_draw_info (NDI_UNIQUE, 0, pl, "You are carrying too much weight to jump.");
600 return 0; 600 return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines