Small fir for changeset 9539

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9568 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
KarLaeda 2006-12-24 18:59:58 +00:00
parent b334bf37d7
commit 2f7bd25279
3 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/12/24
* Small fir for changeset 9539 (support for PACKETVER above 7) [KarLaeda]
2006/12/23 2006/12/23
* Fallback for parenthesis argument lists in the script engine. * Fallback for parenthesis argument lists in the script engine.
"func (exp) , ..." is valid again. "func (exp) , ..." is valid again.

View File

@ -1686,6 +1686,7 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
sd->found_char[i] = -1; sd->found_char[i] = -1;
#if PACKETVER > 7 #if PACKETVER > 7
//Updated packet structure with rename-button included. Credits to Sara-chan
WFIFOHEAD(fd, offset + found_num * 108); WFIFOHEAD(fd, offset + found_num * 108);
memset(WFIFOP(fd,0), 0, offset + found_num * 108); memset(WFIFOP(fd,0), 0, offset + found_num * 108);
WFIFOW(fd,2) = offset + found_num * 108; WFIFOW(fd,2) = offset + found_num * 108;

View File

@ -1706,16 +1706,17 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
for(i = found_num; i < 9; i++) for(i = found_num; i < 9; i++)
sd->found_char[i] = -1; sd->found_char[i] = -1;
WFIFOW(fd, 0) = 0x6b;
#if PACKETVER > 7 #if PACKETVER > 7
//Updated packet structure with rename-button included. Credits to Sara-chan //Updated packet structure with rename-button included. Credits to Sara-chan
WFIFOHEAD(fd, offset + found_num * 108);
memset(WFIFOP(fd, 0), 0, offset + found_num * 108); memset(WFIFOP(fd, 0), 0, offset + found_num * 108);
WFIFOW(fd, 2) = offset + found_num * 108; WFIFOW(fd, 2) = offset + found_num * 108;
#else #else
WFIFOHEAD(fd, offset + found_num * 106);
memset(WFIFOP(fd, 0), 0, offset + found_num * 106); memset(WFIFOP(fd, 0), 0, offset + found_num * 106);
WFIFOW(fd, 2) = offset + found_num * 106; WFIFOW(fd, 2) = offset + found_num * 106;
#endif #endif
WFIFOW(fd, 0) = 0x6b;
if (save_log) if (save_log)
ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id); ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);