Преглед изворни кода

Follow up https://github.com/rathena/rathena/commit/85749e84b91087960e868e30a7a052b0c0cdce5b
thank you @cydh

Napster (icxbb-xx) пре 9 година
родитељ
комит
ae10da3a61
2 измењених фајлова са 7 додато и 7 уклоњено
  1. 1 1
      conf/msg_conf/map_msg.conf
  2. 6 6
      src/map/clif.c

+ 1 - 1
conf/msg_conf/map_msg.conf

@@ -743,7 +743,7 @@
 716: Your '%s' is now: %d
 
 // MVP EXP reward message
-717: Congratulations! You are the MVP! Your reward EXP Points are %d !!
+717: Congratulations! You are the MVP! Your reward EXP Points are %u !!
 
 // @showrate
 718: Personal rate information is not displayed now.

+ 6 - 6
src/map/clif.c

@@ -7915,18 +7915,18 @@ void clif_mvp_exp(struct map_session_data *sd, unsigned int exp) {
 	if (battle_config.mvp_exp_reward_message) {
 		char e_msg[CHAT_SIZE_MAX];
 		sprintf(e_msg, msg_txt(sd, 717), exp);
-		clif_colormes(sd->fd, color_table[COLOR_CYAN], e_msg);		// Congratulations! You are the MVP! Your reward EXP Points are %d !!
+		clif_colormes(sd->fd, color_table[COLOR_CYAN], e_msg);		// Congratulations! You are the MVP! Your reward EXP Points are %u !!
 	}
 #else
 	int fd;
 
 	nullpo_retv(sd);
 
-	fd=sd->fd;
-	WFIFOHEAD(fd,packet_len(0x10b));
-	WFIFOW(fd,0)=0x10b;
-	WFIFOL(fd,2)=min(exp,(unsigned int)INT32_MAX);
-	WFIFOSET(fd,packet_len(0x10b));
+	fd = sd->fd;
+	WFIFOHEAD(fd, packet_len(0x10b));
+	WFIFOW(fd,0) = 0x10b;
+	WFIFOL(fd,2) = min(exp, (unsigned int)INT32_MAX);
+	WFIFOSET(fd, packet_len(0x10b));
 #endif
 }