Sfoglia il codice sorgente

Optimized. (What am I thinking)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6111 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 anni fa
parent
commit
64da9b3c0b
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  1. 1 4
      src/map/npc.c

+ 1 - 4
src/map/npc.c

@@ -1840,10 +1840,7 @@ static int npc_parse_script (char *w1,char *w2,char *w3,char *w4,char *first_lin
 
 	nd = (struct npc_data *)aCalloc(1, sizeof(struct npc_data));
 
-	if (m == -1){
-		// スクリプトコピー用のダミーNPC
-		class_ = -1;
-	} else if (sscanf(w4, "%d,%d,%d", &class_, &xs, &ys) == 3) {
+	if (sscanf(w4, "%d,%d,%d", &class_, &xs, &ys) == 3) {
 		// 接触型NPC
 		int i, j;