瀏覽代碼

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://svn.code.sf.net/p/rathena/svn/trunk@16912 54d463be-8e91-2dee-dedb-b68131a5f0ec
momacabu 12 年之前
父節點
當前提交
66617cfc67
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/map/chat.c

+ 4 - 0
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;
 	}