Explorar el Código

Follow up to 5b13dc7

Added missing flag for npc sent mails.
This will prevent showing the reply button on supported clients.
Lemongrass3110 hace 7 años
padre
commit
953f7cf47e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);