diff options
author | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-15 17:39:46 +0000 |
---|---|---|
committer | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-15 17:39:46 +0000 |
commit | 7e5da9f35dec37d88a490207b54dd41853db93f9 (patch) | |
tree | f799c020cbc64757e8f749ef9df8b71debfda3d8 /src/map/atcommand.c | |
parent | 6af2f57a569cb3c8949ea84029e169daecf24548 (diff) | |
download | hercules-7e5da9f35dec37d88a490207b54dd41853db93f9.tar.gz hercules-7e5da9f35dec37d88a490207b54dd41853db93f9.tar.bz2 hercules-7e5da9f35dec37d88a490207b54dd41853db93f9.tar.xz hercules-7e5da9f35dec37d88a490207b54dd41853db93f9.zip |
* Merged changes from trunk [14824:14825/trunk].
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14826 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 7d66d1694..664430b18 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -1836,8 +1836,8 @@ ACMD_FUNC(baselevelup) } // End Addition if ((unsigned int)level > pc_maxbaselv(sd) || (unsigned int)level > pc_maxbaselv(sd) - sd->status.base_level) // fix positiv overflow level = pc_maxbaselv(sd) - sd->status.base_level; - for (i = 1; i <= level; i++) - status_point += (sd->status.base_level + i + 14) / 5; + for (i = 0; i < level; i++) + status_point += pc_gets_status_point(sd->status.base_level + i); sd->status.status_point += status_point; sd->status.base_level += (unsigned int)level; @@ -1853,7 +1853,7 @@ ACMD_FUNC(baselevelup) if ((unsigned int)level >= sd->status.base_level) level = sd->status.base_level-1; for (i = 0; i > -level; i--) - status_point += (sd->status.base_level + i + 14) / 5; + status_point += pc_gets_status_point(sd->status.base_level + i - 1); if (sd->status.status_point < status_point) pc_resetstate(sd); if (sd->status.status_point < status_point) |