summaryrefslogtreecommitdiff
path: root/src/elogin
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-16 19:40:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-16 19:40:07 +0300
commit8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98 (patch)
tree1bb8a2ac537bd1a2f7d9123ea803a8a9cb383221 /src/elogin
parentb4409352f8aae56483133b4086a580e60660f761 (diff)
downloadevol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.gz
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.bz2
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.xz
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.zip
Add evol packets id offset. For now offset is 0.
This allow to change evol packets id if they start conflicting with hercules packets in future.
Diffstat (limited to 'src/elogin')
-rw-r--r--src/elogin/send.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elogin/send.c b/src/elogin/send.c
index 2b50b14..f91cd84 100644
--- a/src/elogin/send.c
+++ b/src/elogin/send.c
@@ -22,10 +22,11 @@ void send_server_version(int fd)
{
WFIFOHEAD(fd, 4 + 8);
WFIFOW(fd, 0) = 0x7531;
- WFIFOW(fd, 2) = 16;
+ WFIFOW(fd, 2) = 18;
WFIFOL(fd, 4) = 0; // unused
WFIFOL(fd, 8) = 19; // plugin version
WFIFOL(fd, 12) = serverPacketVersion; // server packet version
+ WFIFOW(fd, 16) = evolPacketOffset; // packet id offset
WFIFOSET(fd, WFIFOW(fd,2));
}