summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-09 22:14:13 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:24 +0300
commit0b8d4fd2d017076c3bd493c341ec13b29fa489f4 (patch)
treeb3ef7f2ff41771cb39976f2a5ab8ed1b8f959f90 /src/map
parent6bebc8c332bd5ef65f84f709c8a792fe2f3acc69 (diff)
downloadhercules-0b8d4fd2d017076c3bd493c341ec13b29fa489f4.tar.gz
hercules-0b8d4fd2d017076c3bd493c341ec13b29fa489f4.tar.bz2
hercules-0b8d4fd2d017076c3bd493c341ec13b29fa489f4.tar.xz
hercules-0b8d4fd2d017076c3bd493c341ec13b29fa489f4.zip
update clif_tradestart.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6ac825de4..6c634df6b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4101,13 +4101,13 @@ static void clif_traderequest(struct map_session_data *sd, const char *name)
static void clif_tradestart(struct map_session_data *sd, uint8 type)
{
int fd;
-#if PACKETVER >= 6
+#if PACKETVER >= 20090406
struct map_session_data *tsd = NULL;
#endif // PACKETVER >= 6
nullpo_retv(sd);
fd = sd->fd;
-#if PACKETVER >= 6
+#if PACKETVER >= 20090406
tsd = map->id2sd(sd->trade_partner);
if (tsd) {
WFIFOHEAD(fd,packet_len(0x1f5));
@@ -4118,11 +4118,12 @@ static void clif_tradestart(struct map_session_data *sd, uint8 type)
WFIFOSET(fd,packet_len(0x1f5));
return;
}
-#endif // PACKETVER >= 6
+#else
WFIFOHEAD(fd,packet_len(0xe7));
WFIFOW(fd,0) = 0xe7;
WFIFOB(fd,2) = type;
WFIFOSET(fd,packet_len(0xe7));
+#endif // PACKETVER >= 6
}
/// Notifies the client about an item from other player in current trade.