Преглед на файлове

Follow up to 5b13dc7

Added missing flag for npc sent mails.
This will prevent showing the reply button on supported clients.
Lemongrass3110 преди 7 години
родител
ревизия
953f7cf47e
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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);