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.19 by pippijn, Mon Dec 11 21:06:59 2006 UTC vs.
Revision 1.20 by root, Mon Dec 11 21:32:18 2006 UTC

779 sprintf (buf, "%s%s", &tmp->name, periods); 779 sprintf (buf, "%s%s", &tmp->name, periods);
780 buf[40] = 0; 780 buf[40] = 0;
781 781
782 if (settings.permanent_exp_ratio) 782 if (settings.permanent_exp_ratio)
783 { 783 {
784 sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" I64_PFd "/%" I64_PFd "/%d%%)", 784 sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" PRId64 "/%" PRId64 "/%d%%)",
785 buf, tmp->level, 785 buf, tmp->level, tmp->stats.exp,
786 (long long) tmp->stats.exp,
787 (long long) level_exp (tmp->level + 1, op->expmul), clipped_percent (tmp->perm_exp, tmp->stats.exp)); 786 level_exp (tmp->level + 1, op->expmul), clipped_percent (tmp->perm_exp, tmp->stats.exp));
788 } 787 }
789 else 788 else
790 { 789 {
791 sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" I64_PFd "/%" I64_PFd ")", 790 sprintf (skills[num_skills_found++], "%slvl:%3d (xp:%" PRId64 "/%" PRId64 ")",
792 buf, tmp->level, (long long) tmp->stats.exp, (long long) level_exp (tmp->level + 1, op->expmul)); 791 buf, tmp->level, tmp->stats.exp, level_exp (tmp->level + 1, op->expmul));
793 } 792 }
794 /* I don't know why some characters get a bunch of skills, but 793 /* I don't know why some characters get a bunch of skills, but
795 * it sometimes happens (maybe a leftover from bugier earlier code 794 * it sometimes happens (maybe a leftover from bugier earlier code
796 * and those character are still about). In any case, lets handle 795 * and those character are still about). In any case, lets handle
797 * it so it doesn't crash the server - otherwise, one character may 796 * it so it doesn't crash the server - otherwise, one character may

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines