summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-11 06:44:48 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-11 06:44:48 +0000
commit0a9185c28d74e04d751fc27ec4c55901cc0d9a73 (patch)
treeeb412fc02329ac4ef094eb222f68cf60b6a73ad7 /src/map
parent3a791b60705a86733221579714d8aa24948aa382 (diff)
downloadhercules-0a9185c28d74e04d751fc27ec4c55901cc0d9a73.tar.gz
hercules-0a9185c28d74e04d751fc27ec4c55901cc0d9a73.tar.bz2
hercules-0a9185c28d74e04d751fc27ec4c55901cc0d9a73.tar.xz
hercules-0a9185c28d74e04d751fc27ec4c55901cc0d9a73.zip
Fixed bugreport:6435, if you stand on a warp portal with chat room, after you close it you wouldn't be warped properly.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16912 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/chat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/chat.c b/src/map/chat.c
index ad4a767cf..38d255034 100644
--- a/src/map/chat.c
+++ b/src/map/chat.c
@@ -207,6 +207,10 @@ int chat_leavechat(struct map_session_data* sd, bool kicked)
map_deliddb(&cd->bl);
map_delblock(&cd->bl);
map_freeblock(&cd->bl);
+
+ if (map_find_skill_unit_oncell(&sd->bl,sd->bl.x,sd->bl.y,AL_WARP,NULL,0) != NULL)
+ clif_changeoption(&sd->bl); // We tell the client that something has changed...
+
return 1;
}