- Guys can't go across map-servers :( Thanks to Buuyo^

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6905 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-06-01 01:55:35 +00:00
parent 26e1b07f72
commit 8686c24f90
4 changed files with 9 additions and 5 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
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/05/31 2006/05/31
* [Fixed]:
- Guys can't go across map-servers :( [Lance]
* [Fixed]: * [Fixed]:
- Restoration and saving of sd->npc_id must be done every time. [Lance] - Restoration and saving of sd->npc_id must be done every time. [Lance]
* Added back the Freeze/Petrify adjustments of -50%def and +25%mdef (when * Added back the Freeze/Petrify adjustments of -50%def and +25%mdef (when

View File

@ -2744,6 +2744,7 @@ int parse_frommap(int fd) {
char_data->last_point.map = RFIFOW(fd,18); char_data->last_point.map = RFIFOW(fd,18);
char_data->last_point.x = RFIFOW(fd,20); char_data->last_point.x = RFIFOW(fd,20);
char_data->last_point.y = RFIFOW(fd,22); char_data->last_point.y = RFIFOW(fd,22);
char_data->sex = RFIFOB(fd,30); // Buuyo^
WFIFOW(map_fd,0) = 0x2afd; WFIFOW(map_fd,0) = 0x2afd;
WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus); WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus);

View File

@ -2620,6 +2620,7 @@ int parse_frommap(int fd) {
char_data->last_point.map = RFIFOW(fd,18); char_data->last_point.map = RFIFOW(fd,18);
char_data->last_point.x = RFIFOW(fd,20); char_data->last_point.x = RFIFOW(fd,20);
char_data->last_point.y = RFIFOW(fd,22); char_data->last_point.y = RFIFOW(fd,22);
char_data->sex = RFIFOB(fd,30); // Buuyo^
WFIFOW(map_fd,0) = 0x2afd; WFIFOW(map_fd,0) = 0x2afd;
WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus); WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus);

View File

@ -324,11 +324,11 @@ int chrif_changemapserver(struct map_session_data *sd, short map, int x, int y,
chrif_check(-1); chrif_check(-1);
s_ip = 0; s_ip = 0;
for(i = 0; i < fd_max; i++) //for(i = 0; i < fd_max; i++)
if (session[i] && session[i]->session_data == sd) { // if (session[i] && session[i]->session_data == sd) {
s_ip = session[i]->client_addr.sin_addr.s_addr; s_ip = session[sd->fd]->client_addr.sin_addr.s_addr; // For what you're looping it? [Lance]
break; // break;
} // }
WFIFOHEAD(char_fd, 35); WFIFOHEAD(char_fd, 35);
WFIFOW(char_fd, 0) = 0x2b05; WFIFOW(char_fd, 0) = 0x2b05;