From 0db8e5ffab4c7afbed076f4f7ecfb6354952c205 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 7 May 2009 08:40:50 -0600 Subject: Make sure @invisible only makes you invisible It can no longer be used to make you visible if you are already invisible. --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.c') 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); -- cgit v1.2.3-60-g2f50