summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-02 16:01:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-03 17:12:49 +0300
commitb35d946086480f22b82a317623aca84f03dc8ac6 (patch)
treed400be67611097ad11bb8deb43837df5f72ea156 /src/map/clif.c
parent662b9832d227e6d1e795de55512457fb02842243 (diff)
downloadhercules-b35d946086480f22b82a317623aca84f03dc8ac6.tar.gz
hercules-b35d946086480f22b82a317623aca84f03dc8ac6.tar.bz2
hercules-b35d946086480f22b82a317623aca84f03dc8ac6.tar.xz
hercules-b35d946086480f22b82a317623aca84f03dc8ac6.zip
Fix version for packet 0x08e2 ZC_NAVIGATION_ACTIVE.
Diffstat (limited to 'src/map/clif.c')
-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 e18bbbf95..031959be2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -18956,13 +18956,14 @@ void clif_selectcart(struct map_session_data *sd)
/// Starts navigation to the given target on client side
void clif_navigate_to(struct map_session_data *sd, const char* mapname, uint16 x, uint16 y, uint8 flag, bool hideWindow, uint16 mob_id)
{
-#if PACKETVER >= 20111010
+// probably this packet with other fields present in older packet versions
+#if PACKETVER >= 20120307
int fd;
nullpo_retv(sd);
nullpo_retv(mapname);
fd = sd->fd;
- WFIFOHEAD(fd, 27);
+ WFIFOHEAD(fd, packet_len(0x8e2));
WFIFOW(fd, 0) = 0x8e2;
// How detailed will our navigation be?
@@ -18990,7 +18991,7 @@ void clif_navigate_to(struct map_session_data *sd, const char* mapname, uint16 x
WFIFOW(fd, 23) = y;
// Target monster ID
WFIFOW(fd, 25) = mob_id;
- WFIFOSET(fd, 27);
+ WFIFOSET(fd, packet_len(0x8e2));
#endif
}