Przeglądaj źródła

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@55 54d463be-8e91-2dee-dedb-b68131a5f0ec

codemaster 20 lat temu
rodzic
commit
684cb2047c
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/map/clif.c

+ 4 - 1
src/map/clif.c

@@ -1695,7 +1695,10 @@ static int clif_waitclose(int tid, unsigned int tick, int id, int data) {
  *------------------------------------------
  */
 void clif_setwaitclose(int fd) {
-	add_timer(gettick() + 5000, clif_waitclose, fd, 0);
+	if((sd=session[fd]->session_data) == NULL
+		add_timer(gettick() + 1000, clif_waitclose, fd, 0);
+	else
+		add_timer(gettick() + 5000, clif_waitclose, fd, 0);
 }
 
 /*==========================================