summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-15 15:22:02 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-15 15:22:02 +0000
commitee74f4207e43451f6857b327f52f206faca53d0a (patch)
tree645d8280940072468507c124507e78e4f3e08fa4 /src/map/pc.c
parent8a2da0cdd5e7e28a8119442b4b9da816a9985250 (diff)
downloadhercules-ee74f4207e43451f6857b327f52f206faca53d0a.tar.gz
hercules-ee74f4207e43451f6857b327f52f206faca53d0a.tar.bz2
hercules-ee74f4207e43451f6857b327f52f206faca53d0a.tar.xz
hercules-ee74f4207e43451f6857b327f52f206faca53d0a.zip
- 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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
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);