Fixes to OP_ZonePlayerToBind code, esp for RoF clients.

This commit is contained in:
KimLS
2015-02-14 18:32:29 -08:00
parent 75809fc3bb
commit f95e211d9b
7 changed files with 81 additions and 175 deletions
+5
View File
@@ -41,6 +41,11 @@
memset(__packet->pBuffer, 0, len); \
eq_struct *eq = (eq_struct *) __packet->pBuffer; \
#define ALLOC_LEN_ENCODE(len) \
__packet->pBuffer = new unsigned char[len]; \
__packet->size = len; \
memset(__packet->pBuffer, 0, len); \
//a shorter assignment for direct mode
#undef OUT
#define OUT(x) eq->x = emu->x;