summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-07 17:05:56 -0200
committershennetsind <ind@henn.et>2013-11-07 17:05:56 -0200
commit8083daec0d94f78510411c9b225abcfa7e829e95 (patch)
treec872c4b13d0853c2acf426cdf85dd25d010e3974 /src/map/atcommand.c
parentb9b32ac7609e33c21b488d722103cc0eea16b12c (diff)
downloadhercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.gz
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.bz2
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.xz
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.zip
Further item bind adjustments
Thanks to Haruna! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.c')
-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 e19428d36..316e5a39b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1123,7 +1123,7 @@ ACMD(item)
return false;
}
- if( bound < IBT_MIN || bound > IBT_MAX ) {
+ if(!strcmpi(command+1,"itembound") && !(bound >= IBT_MIN && bound <= IBT_MAX) ) {
clif->message(fd, msg_txt(298)); // Invalid bound type
return false;
}
@@ -1189,7 +1189,7 @@ ACMD(item2)
if (number <= 0)
number = 1;
- if( bound < IBT_MIN || bound > IBT_MAX ) {
+ if( !strcmpi(command+1,"itembound2") && !(bound >= IBT_MIN && bound <= IBT_MAX) ) {
clif->message(fd, msg_txt(298)); // Invalid bound type
return false;
}