summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-22 21:20:36 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-22 21:20:36 +0300
commitbb5897b1d3323e8e9d2fd0fd45e2dd41679e9d30 (patch)
tree5d27a80e3bee5f97a8121043d5cd9395dab528ea /src/map
parent0f55a042a9eeb8334f28493f24e1dc9d72893425 (diff)
downloadhercules-bb5897b1d3323e8e9d2fd0fd45e2dd41679e9d30.tar.gz
hercules-bb5897b1d3323e8e9d2fd0fd45e2dd41679e9d30.tar.bz2
hercules-bb5897b1d3323e8e9d2fd0fd45e2dd41679e9d30.tar.xz
hercules-bb5897b1d3323e8e9d2fd0fd45e2dd41679e9d30.zip
Fix versions usage for packet ZC_MVP_GETTING_SPECIAL_EXP
It was never removed from kro (ragexe or ragexeRE), but for some reason was disabled.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d70f69557..5cb362c7f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7687,22 +7687,16 @@ static void clif_mvp_item(struct map_session_data *sd, int nameid)
/// 010b <exp>.L
static void clif_mvp_exp(struct map_session_data *sd, unsigned int exp)
{
-#if PACKETVER >= 20131223 // Kro removed this packet [Napster]
- if (battle_config.mvp_exp_reward_message) {
- char e_msg[CHAT_SIZE_MAX];
- sprintf(e_msg, msg_txt(855), exp);
- clif->messagecolor_self(sd->fd, COLOR_CYAN, e_msg); // Congratulations! You are the MVP! Your reward EXP Points are %u !!
- }
-#else
+#if PACKETVER_RE_NUM >= 20080827 || PACKETVER_MAIN_NUM >= 20090401 || defined(PACKETVER_ZERO)
int fd;
nullpo_retv(sd);
- fd=sd->fd;
- WFIFOHEAD(fd,packet_len(0x10b));
- WFIFOW(fd,0)=0x10b;
- WFIFOL(fd,2)=cap_value(exp,0,INT32_MAX);
- WFIFOSET(fd,packet_len(0x10b));
+ fd = sd->fd;
+ WFIFOHEAD(fd, packet_len(0x10b));
+ WFIFOW(fd, 0) = 0x10b;
+ WFIFOL(fd, 2) = cap_value(exp, 0, INT32_MAX);
+ WFIFOSET(fd, packet_len(0x10b));
#endif
}