Skip to content

Commit

Permalink
Fix version for packet 0x08e2 ZC_NAVIGATION_ACTIVE.
Browse files Browse the repository at this point in the history
  • Loading branch information
4144 committed Nov 3, 2016
1 parent 662b983 commit b35d946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/map/clif.c
Expand Up @@ -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?
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions src/map/packets.h
Expand Up @@ -1954,6 +1954,8 @@ packet(0x96e,-1,clif->ackmergeitems);
packet(0x0835,2,clif->pSearchStoreInfoNextPage,0);
packet(0x0838,12,clif->pSearchStoreInfoListItemClick,2,6,10);
packet(0x0439,8,clif->pUseItem,2,4);
// changed packet sizes
packet(0x08e2,27); // ZC_NAVIGATION_ACTIVE
#endif

//2012-04-10aRagexeRE
Expand Down

0 comments on commit b35d946

Please sign in to comment.