diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-07 08:40:50 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-07 08:41:55 -0600 |
commit | 0db8e5ffab4c7afbed076f4f7ecfb6354952c205 (patch) | |
tree | 21edfd1a817f0d144e78d2eada1a4a7d898947c7 /src/map | |
parent | 1bfe2a3a61e6469db9d3419e6e00d524598fdfed (diff) | |
download | tmwa-0db8e5ffab4c7afbed076f4f7ecfb6354952c205.tar.gz tmwa-0db8e5ffab4c7afbed076f4f7ecfb6354952c205.tar.bz2 tmwa-0db8e5ffab4c7afbed076f4f7ecfb6354952c205.tar.xz tmwa-0db8e5ffab4c7afbed076f4f7ecfb6354952c205.zip |
Make sure @invisible only makes you invisible
It can no longer be used to make you visible if you are already
invisible.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 982adea..489290a 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7692,7 +7692,7 @@ pc_invisibility(struct map_session_data *sd, int enabled) clif_clearchar_area(&sd->bl, 3); sd->status.option |= OPTION_INVISIBILITY; clif_status_change(&sd->bl, CLIF_OPTION_SC_INVISIBILITY, 1); - } else { + } else if (!enabled) { sd->status.option &= ~OPTION_INVISIBILITY; clif_status_change(&sd->bl, CLIF_OPTION_SC_INVISIBILITY, 0); pc_setpos(sd, map[sd->bl.m].name, sd->bl.x, sd->bl.y, 3); |