summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-10 17:30:54 -0300
committershennetsind <ind@henn.et>2013-05-10 17:30:54 -0300
commitfa24fdb97db2aca73d94bb584835e9e864c8d085 (patch)
treebc5b29c19e979fb1b65df34811f95283f731ea75 /src/map/atcommand.c
parentac3caf50ec83838486e18294a2d1b68794439119 (diff)
downloadhercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.gz
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.bz2
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.xz
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.zip
Fixed Bug #7236 @mount
http://hercules.ws/board/tracker/issue-7236-mount/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 63d20d70d..9fda83546 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -900,7 +900,7 @@ ACMD(hide)
nullpo_retr(-1, sd);
if (sd->sc.option & OPTION_INVISIBLE) {
sd->sc.option &= ~OPTION_INVISIBLE;
- if (sd->disguise)
+ if (sd->disguise != -1 )
status_set_viewdata(&sd->bl, sd->disguise);
else
status_set_viewdata(&sd->bl, sd->status.class_);
@@ -4006,7 +4006,7 @@ ACMD(mount_peco)
{
nullpo_retr(-1, sd);
- if (sd->disguise) {
+ if (sd->disguise != -1) {
clif->message(fd, msg_txt(212)); // Cannot mount while in disguise.
return false;
}
@@ -4840,7 +4840,7 @@ ACMD(disguiseguild)
ACMD(undisguise)
{
nullpo_retr(-1, sd);
- if (sd->disguise) {
+ if (sd->disguise != -1) {
pc_disguise(sd, -1);
clif->message(fd, msg_txt(124)); // Undisguise applied.
} else {
@@ -4861,7 +4861,7 @@ ACMD(undisguiseall) {
iter = mapit_getallusers();
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
- if( pl_sd->disguise )
+ if( pl_sd->disguise != -1 )
pc_disguise(pl_sd, -1);
mapit_free(iter);
@@ -4894,7 +4894,7 @@ ACMD(undisguiseguild)
}
for(i = 0; i < g->max_member; i++)
- if( (pl_sd = g->member[i].sd) && pl_sd->disguise )
+ if( (pl_sd = g->member[i].sd) && pl_sd->disguise != -1 )
pc_disguise(pl_sd, -1);
clif->message(fd, msg_txt(124)); // Undisguise applied.