summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-23 07:43:31 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-23 07:43:31 +0000
commit0939f5a69654508d0280c92b679ca70eae7e4e53 (patch)
tree05b32d88ff6fe4b6655cf31e1545f855e41f48df /src
parentba25e8d8a1f77cfad43a31e5dac77e5b70c8f8d1 (diff)
downloadhercules-0939f5a69654508d0280c92b679ca70eae7e4e53.tar.gz
hercules-0939f5a69654508d0280c92b679ca70eae7e4e53.tar.bz2
hercules-0939f5a69654508d0280c92b679ca70eae7e4e53.tar.xz
hercules-0939f5a69654508d0280c92b679ca70eae7e4e53.zip
Fixed bugreport:5794 characters are no longer able to bypass servers max level with @baselevel/@jlevl/etc
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16139 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index e171cf239..8d88566c7 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1535,7 +1535,7 @@ ACMD_FUNC(baselevelup)
}
if (level > 0) {
- if (sd->status.base_level == pc_maxbaselv(sd)) { // check for max level by Valaris
+ if (sd->status.base_level >= pc_maxbaselv(sd)) { // check for max level by Valaris
clif_displaymessage(fd, msg_txt(47)); // Base level can't go any higher.
return -1;
} // End Addition
@@ -1594,7 +1594,7 @@ ACMD_FUNC(joblevelup)
return -1;
}
if (level > 0) {
- if (sd->status.job_level == pc_maxjoblv(sd)) {
+ if (sd->status.job_level >= pc_maxjoblv(sd)) {
clif_displaymessage(fd, msg_txt(23)); // Job level can't go any higher.
return -1;
}