Sfoglia il codice sorgente

Follow up to 5b13dc7

Added missing flag for npc sent mails.
This will prevent showing the reply button on supported clients.
Lemongrass3110 7 anni fa
parent
commit
953f7cf47e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/map/clif.cpp

+ 3 - 1
src/map/clif.cpp

@@ -15242,7 +15242,9 @@ void clif_Mail_refreshinbox(struct map_session_data *sd,enum mail_inbox_type typ
 		}
 
 		// If it came from an npc?
-		//mailType |= MAIL_TYPE_NPC;
+		if( !msg->send_id ){
+			mailType |= MAIL_TYPE_NPC;
+		}
 
 		WFIFOB(fd, offset + 9) = mailType;
 		safestrncpy(WFIFOCP(fd, offset + 10), msg->send_name, NAME_LENGTH);