From ee74f4207e43451f6857b327f52f206faca53d0a Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 15 May 2006 15:22:02 +0000 Subject: - Removed Lance's checks in clif.c to prevent sending packets when a player is in OPTION_INVISIBLE mode. Now pc_disguise won't change your viewclass when you diguise while hiding. The disguise should "show up" when you uncloak, instead. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6597 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 42baf4f8e..1a3a88486 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1085,6 +1085,12 @@ int pc_disguise(struct map_session_data *sd, int class_) { if (class_ && (sd->disguise == class_ || pc_isriding(sd))) return 0; + if(sd->sc.option&OPTION_INVISIBLE) + { //Character is invisible. Stealth class-change. [Skotlex] + sd->disguise = class_; //viewdata is set on uncloaking. + return 2; + } + pc_stop_walking(sd, 0); clif_clearchar(&sd->bl, 0); -- cgit v1.2.3-70-g09d2